A opinionated React Boilerplate with focus on simplicity and extendability. Use this as the start of your React project and extend to your projects requirements.
Precommit is setup to run lint-staged
and yarn test
everytime you commit your changes. Making sure that your code is on point.
This boilerplate is setup to use css (sass of scss) modules. When you build your app the classes wil be obfuscated. So css for your components stay locally scoped. Then the css is merged into 1 file and minified for performance.
- Make sure that you have Node v8 or above and Yarn installed.
- Clone this repo using
git clone --depth=1 https://github.com/lhstraathof/react-start.git
- Move to the appropriate directory:
cd react-start
. - Run
yarn
in order to install dependencies.
At this point you can runyarn start
to see the example app athttp://localhost:9000
. - When you are ready you build your app run
yarn build
Now you're ready to rumble!