An ever-evolving boilerplate for React SPA's using Redux.
To start storybook, run the following:
./node_modules/.bin/start-storybook -p 9000 -s ./public
This boilerplate follows a pattern where each component is contained within it's own folder with the following structure:
folder/
folder/dumbComponent.js
folder/smartComponent.js
folder/component.spec.js
folder/component.scss
folder/storybook/component.js
As this can be a bit of a pain to do manually, there is a great tool called redux-cli which you should install globally by running:
npm i redux-cli -g
Then you can easily generate a new component structure using:
redux g boilerplate NameOfComponent