Using https://github.com/coryhouse/react-slingshot as the bones, I built, in my opinion, a more agreeable file and folder structure.
Components/Containers are now encapsulated in the folder "features", when a new feature is needed, simply duplicate the src/features/blank
folder with the desired name. Then change out the name of the components, containers, and reducers to get your new feature. Add new reducers in src/reducers/index.js
, and routes in src/routes.js
.
Happy Coding!
npm i && npm start
- Done
- Play around!
I've automated the creation of features or "dynamic components". Simply run ./featurecreation.sh helloworld"
to create your new feature!
3. Have fun!