A simple Snapshot + Routes template for Create React App
npx create-react-app my-app --template snapshot
This template aims to provide a simple solution for small react-apps that need static pages generation and improved SEO, without complex configuration. It is ideal for simple business sites and small applications. It manages to do that with the use of react-snapshot, react-router and react-helmet. The template also uses node-sass and gh-pages.
Using this template you get:
- Improved SEO
- Routing
- Out-of-the box sass and scss support
- Static exporting on build.
- Simple type-checking for your components with prop-types. (For advanced features, you might consider switching to TypeScript)
- Gh-pages deployment (To serve your files on Github, you may have to configure your gh-pages branch. Check Github Pages for more information)
If your application needs complex static exporting, you might want to look at Gatsby
Licensed under the MIT license.