boilerplate-for-react-components
v1.2.5
Published
generates a folder structure & skelton files for a react-component
Downloads
3
Readme
content-type
Create a Boilerplate for a ReactComponent with following details:
Installation
Create a command in your scripts in the way : "scripts": { "create":"create ./src/components", // specify the path to which the component should be created. },
and now run : npm run create "COMPONENT NAME";
Creates following: component js file , component css file, component unit test file
for story book: generate a __storybook folder with index.js referencing the component
Throws a Error
when specified name already exists.