βš›οΈ πŸš€ A progressive static site generator for React.
Clone or download
cooperka and tannerlinsley Use updated UglifyJsPlugin for create-react-app compatibility (#829)
* Commit yarn 1.10 'integrity' info

* Use updated UglifyJsPlugin

Fixes `Unexpected token: punc ())` errors during build

See discussions for details:
webpack-contrib/uglifyjs-webpack-plugin#104 (comment)
webpack/webpack#5858 (comment)
Latest commit 52927a5 Oct 22, 2018
Permalink
Failed to load latest commit information.
.github Make the project name consistent (React Static, not React-Static) + o… Oct 16, 2018
bin Checkout master to 5.9.7 Sep 10, 2018
docs Make the project name consistent (React Static, not React-Static) + o… Oct 16, 2018
examples Make the project name consistent (React Static, not React-Static) + o… Oct 16, 2018
media Remove Gitdocs, add custom docs Apr 24, 2018
node Revert master to pre v6 Sep 6, 2018
scripts Revert master to pre v6 Sep 6, 2018
src Use updated UglifyJsPlugin for create-react-app compatibility (#829) Oct 22, 2018
test Checkout master to 5.9.7 Sep 10, 2018
www Make the project name consistent (React Static, not React-Static) + o… Oct 16, 2018
.babelrc v5.8.7 May 1, 2018
.eslintignore 5.6.8 Mar 28, 2018
.eslintrc.js Revert master to pre v6 Sep 6, 2018
.gitignore WIP: Riley Build (#592) Jun 18, 2018
.npmignore 5.9.11 Oct 2, 2018
.travis.yml Revert master to pre v6 Sep 6, 2018
CHANGELOG.md Make the project name consistent (React Static, not React-Static) + o… Oct 16, 2018
CODE_OF_CONDUCT.md Switch to Spectrum for community May 24, 2018
CONTRIBUTING.md Make the project name consistent (React Static, not React-Static) + o… Oct 16, 2018
LICENSE Update LICENSE Oct 11, 2017
README.md add camp.rhms.cf with source to 'made with react-static' section (#821) Oct 16, 2018
babel-preset.js Checkout master to 5.9.7 Sep 10, 2018
package.json Use updated UglifyJsPlugin for create-react-app compatibility (#829) Oct 22, 2018
setupTests.js Fixes issue with error page showing in production (#556) Apr 12, 2018
testExamplesBuild.js Checkout master to 5.9.7 Sep 10, 2018
yarn.lock Use updated UglifyJsPlugin for create-react-app compatibility (#829) Oct 22, 2018

README.md

React Static v6 is under active development on the v6 branch! The docs below are for the stable 5.x.x version.

React Static Logo

Travis CI Build Status David Dependancy Status npm package v npm package dm Join the community on Spectrum Github Stars Twitter Follow



React Static

A progressive static-site generator for React.

Read the introduction article on Medium

React Static is a fast, lightweight, and powerful framework for building static-progressive React applications and websites. It's been carefully designed to meet the highest standards of SEO, site performance, and user/developer experience.

Sponsored By GraphCMS

Features

  • βš›οΈ 100% React (or Preact!)
  • πŸš€ Blazing fast builds and performance.
  • 🚚 Data Agnostic. Supply your site with data from anywhere, however you want.
  • βœ‚οΈ Automatic code and data splitting for routes!
  • πŸ’₯ Instant page views via PRPL pattern.
  • 🎯 Built for SEO.
  • πŸ₯‡ React-first developer experience.
  • 😌 Painless project setup & migration.
  • πŸ’― Supports 100% of the React ecosystem. Including CSS-in-JS libraries, custom Query layers like GraphQL, and even Redux.
  • πŸ”₯ Hot Reloadable out-of-the-box. Edit React components & styles in real-time.
  • πŸ“² LAN accessible dev environment for testing on other devices like phones and tablets.

Videos & Tutorials

Sites Built with React Static

Quick Start

  1. Install the CLI:
$ yarn global add react-static
# or
$ npm install -g react-static
  1. Create a new project:
$ react-static create
  1. Pick a template! See the full list of templates
  2. Navigate to your new project:
$ cd my-static-site
  1. Start the dev server and edit some code!
$ yarn start # or react-static start
  1. Test a production build
$ yarn stage # or react-static build --staging
$ yarn serve
  1. Build for production!
$ yarn build # or react-static build

Once you've installed and test driven sufficiently, you may want to:

Examples and Templates

All of the following examples can be used as a template at project creation.

Can't find an example? We invite you to write one! Simply copy the basic or blank templates and make the necessary changes. Then submit a PR including your new example directory and a new item in the list above. When merged, your example will automatically become a template in the CLI. How magical!

Documentation

Core Concepts

API Reference

Changelog

Contributing Guide

Chat with us on the React Static Spectrum community!

Need some help? Have a quick question? Click here to sign up for the React Static Spectrum community! We are constantly answering questions, discussing features and helping each other out!

Contributing

We are always looking for people to help us grow react-static's capabilities and examples. If you have an issue, feature request, or pull request, let us know!

License

React Static uses the MIT license. For more information on this license, click here.