Skip to content

Latest commit

 

History

History
executable file
·
29 lines (20 loc) · 1.11 KB

readme.md

File metadata and controls

executable file
·
29 lines (20 loc) · 1.11 KB

React Boilerplate

Build Status Coverage Status

An ever-evolving boilerplate for React SPA's using Redux.

Storybook

To start storybook, run the following:

./node_modules/.bin/start-storybook -p 9000 -s ./public

Generating Components

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