This is how cake.js creates a component, that can be use in a web app,

/*
*@componentName - string, component's
*@selector - id of a template tag in the DOM
*@config - configurations of a component
*/
//Cake.create(componentName, selector, config);Cake.create(‘form’, ‘#form’, {
root:”BODY”,
handlers:{},
subscribe:{},
});

--

--