Install with npm i -g popjs-cli
.
sonpop make directory_name/componentName -f
- An optional HTML tag can also be supplied to the second argument, e.g "make-div", "make-button", "make-span" etc.
- If directory is omitted, the component is created in the directory where the terminal is being run.
make
is used to create a generic pop! component with a render lifecycle method.-f
generates a pop! component with the set lifecycle method, props and state added.
Get familiar with the pop! JS framework by checking out the guide available at https://abiramrnair.github.io/pop-js/.