mirror of
https://github.com/zhigang1992/create-react-app.git
synced 2026-04-29 01:45:40 +08:00
recommend react-snap; react-snapshot isn't upgraded for React 16 (#3328)
This commit is contained in:
committed by
Dan Abramov
parent
0f5deb6a8e
commit
c51258b8a8
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user