Basically is react like component to create HTML Elements and handle states
npm -i mohamed28.componentizer --save
Basic you create some new class and extend the Componentizer
class
import Componentizer from 'componentizer'
default export class Example extends Componentizer {
render(){
return this.build("h1", "", {class: "message"},
["span", "Hello", {class: "message__clear"}],
["span", "World", {class: "message__dark"}]
)
}
}
Everytime you extend Componentizer
you need to implement a specific render() method, that has to be used on the main js that you will use you component