react/fixtures/ssr
Sebastian Markbåge 3ad076472c
Update Fixtures to use new APIs (#17380)
Also renamed unstable-async to concurrent
2019-11-17 14:42:47 -08:00
..
public SSR fixture (#9547) 2017-04-27 21:03:32 -07:00
server Fix failing Prettier command (#10268) 2017-07-24 13:59:16 -07:00
src Update Fixtures to use new APIs (#17380) 2019-11-17 14:42:47 -08:00
README.md Use Yarn Workspaces (#11252) 2017-10-19 00:22:21 +01:00
package.json Move npm output from build/packages/* to build/node_modules/* (#11962) 2018-01-04 19:01:31 +00:00
yarn.lock Update Fixtures to use new APIs (#17380) 2019-11-17 14:42:47 -08:00

README.md

SSR Fixtures

A set of test cases for quickly identifying issues with server-side rendering.

Setup

To reference a local build of React, first run npm run build at the root of the React project. Then:

cd fixtures/ssr
yarn
yarn start

The start command runs a webpack dev server and a server-side rendering server in development mode with hot reloading.

Note: whenever you make changes to React and rebuild it, you need to re-run yarn in this folder:

yarn

If you want to try the production mode instead run:

yarn start:prod

This will pre-build all static resources and then start a server-side rendering HTTP server that hosts the React app and service the static resources (without hot reloading).