react/fixtures/ssr2
Andrew Clark 56efb2e227
Bump canary versions to v19-canary (#28646)
This bumps the canary versions to v19 to communicate that the next
release will be a major. Once this lands, we can start merging breaking
changes into `main`.
2024-03-26 15:31:57 -04:00
..
public Fix CSS 2021-06-04 23:12:01 +01:00
scripts [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
server Upgrade prettier (#26081) 2023-01-31 08:25:05 -05:00
src [Codemod] Update copyright header to Meta (#25315) 2022-10-18 11:19:24 -04:00
package-lock.json Bump @babel/traverse from 7.14.2 to 7.23.3 in /fixtures/ssr2 (#27713) 2023-11-16 14:08:02 -05:00
package.json Bump canary versions to v19-canary (#28646) 2024-03-26 15:31:57 -04:00
README.md Fix for SSR2 fixture not working locally (#24237) 2022-04-01 00:26:12 +01:00
yarn.lock Bump @babel/traverse from 7.14.2 to 7.23.3 in /fixtures/ssr2 (#27713) 2023-11-16 14:08:02 -05:00

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).