Create a component — Cake.JS

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:{},
});

--

--

Cedrick Campoto
0 Followers

Self - taught full stack developer