React Static Template is a boilerplate for React apps that has a simple one-page layout (no routing), markdown compatibility, and plays well with GitHub pages.
This project is inspired by React Static Boilerplate. The Webpack and Node.js configuration, as well as the markdown loader, is borrowed and adapted from React Static Boilerplate.
Demo: https://mksarge.github.io/react-static-template/
Install: npm install
Lint: npm run lint
Dev Build with HMR: npm run start
Production Build: npm run build
- Make some changes.
npm run build
git checkout gh-pages
- Copy files from
public
into the root folder - Commit and push. (Make sure you have GitHub Pages set to
gh-pages
in the settings!)
The source code is licensed under the MIT license found in the LICENSE.txt file in the root folder of this project.