Hygen component template
A simple component generator. Creates a functional or class component along with an optional static js file and docs structure
Simple usage
Generate
$ npm install hygen -g$ cd src/components$ hygen component new- Answer questions
- New component will be created in
src/components
Use
After you generated your new component, there are few things which are not automated.
- Component should be exportable from
src/components/index.js - If you created optional static js file, you should initialise it inside
src/components/static.jsfile,
the initialisation should correspond to documentation section named Custom initialisation