react/fixtures/ssr2
Kay d352fd0931
Fix for SSR2 fixture not working locally (#24237)
* SS2 fixture not working locally fix

* Fix prettier issue

* prettier excess line fix

* Update render.js

* Update README.md

Co-authored-by: dan <dan.abramov@gmail.com>
2022-04-01 00:26:12 +01:00
..
public Fix CSS 2021-06-04 23:12:01 +01:00
scripts Fix for SSR2 fixture not working locally (#24237) 2022-04-01 00:26:12 +01:00
server Fix for SSR2 fixture not working locally (#24237) 2022-04-01 00:26:12 +01:00
src Move createRoot/hydrateRoot to react-dom/client (#23385) 2022-03-01 00:13:28 -05:00
README.md Fix for SSR2 fixture not working locally (#24237) 2022-04-01 00:26:12 +01:00
package-lock.json Fix fixture lockfile manually 2021-06-16 00:04:01 +01:00
package.json [Fizz] Add option to inject bootstrapping script tags after the shell is injected (#22594) 2021-10-19 19:36:10 -07:00
yarn.lock [Fizz] Add option to inject bootstrapping script tags after the shell is injected (#22594) 2021-10-19 19:36:10 -07: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/ssr2
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).