mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-21 09:11:26 -08:00
* Add a react component generator * Update markdown links * Change commented code to block comment |
||
---|---|---|
.. | ||
component_templates.js | ||
index.js | ||
README.md |
README
Creating all the various parts of a React component each time a new component is needed is cumbersome and error-prone.
This folder follows this link to allow the developer to create a new React component (along with sass, tests and barrell) with a single command. The command is
npm run gc <NameOfComponent>
For example: to create a new React component called MapGeolocate:
npm run gc MapGeolocate
Note: gc stands for generate component