Hii Anuj,
You can use following code format:-
var recordId = ‘{!customObject__c.id}’;
$Lightning.use(“c:customObjectEditApp”, function() {
// Attributes are passed to the new component as a name/value hash
var attributes = {
recordId: recordId
};
var targetElementId = ‘customObjectEdit’;
// Create the component with the supplied attributes
$Lightning.createComponent(‘c:customObjectEdit’, attributes, targetElementId, function(cmp) {
// At this point the component has been created and loaded
});
});