mirror of
https://github.com/facebook/react.git
synced 2026-02-26 18:58:05 +00:00
Using the `link:` protocol to create a dependency doesn't work when we edit the `package.json` to lock the version to a specific version. It didn't really work before neither, it was just that `yarn` installed an existing `scheduler` dependency from npm instead of using the built one. So I'm updating all the fixture to use the technique where we copy files instead.
Fizz Fixtures
A set of basic tests for Fizz primarily focused on baseline performance of legacy renderToString and streaming implementations.
Setup
To reference a local build of React, first run npm run build at the root
of the React project. Then:
cd fixtures/fizz
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).