mirror of
https://github.com/facebook/react.git
synced 2026-02-26 00:15:01 +00:00
The old version of prettier we were using didn't support the Flow syntax to access properties in a type using `SomeType['prop']`. This updates `prettier` and `rollup-plugin-prettier` to the latest versions. I added the prettier config `arrowParens: "avoid"` to reduce the diff size as the default has changed in Prettier 2.0. The largest amount of changes comes from function expressions now having a space. This doesn't have an option to preserve the old behavior, so we have to update this.
Manual Testing Fixtures
This folder exists for React contributors only.
If you use React, you don't need to worry about it.
These fixtures verify that the built React distributions are usable in different environments.
They are not running automatically. (At least not yet. Feel free to contribute to automate them.)
Run them when you make changes to how we package React and ReactDOM.
How to Run
First, build React and the fixtures:
cd react
npm run build
node fixtures/packaging/build-all.js
Then run a local server, e.g.
npx pushstate-server .
and open the following URL in your browser: http://localhost:9000/fixtures/packaging/index.html
You should see two things:
- A number of iframes (corresponding to various builds), with "Hello World" rendered in each iframe.
- No errors in the console.