React Boilerplate

by tomschweers


React boilerplate with sidebar navigation

Originally cloned from

This is the starting point for my own website. I wanted to keep it as simple as possible for future uses. Feel free to clone/download and star if you find it useful. This is also great for sandboxing components.


I have installed It is very useful when sandboxing because I often will install a bunch of packages to play around with and then end up forgetting to remove them. Just run:

$ yarn depcheck

Then for unused dependencies run:

$ yarn remove [package]

The sidebar comes from This is the best sidebar nav for React that I was able to find. You can configure it in many cool ways and adapts well to mobile. Take note that I am running an older version of react-sidebar (v2) because the newest version does not support the sliding functionality on mobile to close the menu.

Font Awesome is included as well, because well, it's awesome. No icons are actually used in the boilerplate but it's all set up and ready to go; all you have to do is uncomment the code in App.js and import your icon of choice to your component.

The remaining deps are pretty standard or come along with create-react-app.

Available Scripts

In the project directory, you can run (use yarn not npm):

$ yarn start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

$ yarn build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

Deploy to Heroku