Skip to content

Commit

Permalink
recommend react-snap; react-snapshot isn't upgraded for React 16 (fac…
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronshaf authored and gaearon committed Oct 28, 2017
1 parent c9ea562 commit 7715442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ If you use a Node server, you can even share the route matching logic between th

## Pre-Rendering into Static HTML Files

If you’re hosting your `build` with a static hosting provider you can use [react-snapshot](https://www.npmjs.com/package/react-snapshot) to generate HTML pages for each route, or relative link, in your application. These pages will then seamlessly become active, or “hydrated”, when the JavaScript bundle has loaded.
If you’re hosting your `build` with a static hosting provider you can use [react-snapshot](https://www.npmjs.com/package/react-snapshot) or [react-snap](https://github.com/stereobooster/react-snap) to generate HTML pages for each route, or relative link, in your application. These pages will then seamlessly become active, or “hydrated”, when the JavaScript bundle has loaded.

There are also opportunities to use this outside of static hosting, to take the pressure off the server when generating and caching routes.

Expand Down

0 comments on commit 7715442

Please sign in to comment.