j40-cejst-2/client/.generate_component/README.md

14 lines
557 B
Markdown
Raw Permalink Normal View History

# README
Creating all the various parts of a React component each time a new component is needed is cumbersome and error-prone.
2022-09-30 13:43:31 -04:00
This folder follows this [link](https://levelup.gitconnected.com/how-to-generate-react-components-from-your-terminal-a27741a5b862) to allow the developer to create a new React component (along with sass, tests and barrell) with a single command. The command is
2022-09-30 13:43:31 -04:00
`npm run gc <NameOfComponent>`
For example: to create a new React component called MapGeolocate:
`npm run gc MapGeolocate`
2022-09-30 13:43:31 -04:00
Note: gc stands for generate component