react/packages/react-noop-renderer
Andrew Clark 4729ff6d1f
Implement identifierPrefix option for useId (#22855)
When an `identifierPrefix` option is given, React will add it to the
beginning of ids generated by `useId`.

The main use case is to avoid conflicts when there are multiple React
roots on a single page.

The server API already supported an `identifierPrefix` option. It's not
only used by `useId`, but also for React-generated ids that are used to
stitch together chunks of HTML, among other things. I added a
corresponding option to the client.

You must pass the same prefix option to both the server and client.
Eventually we may make this automatic by sending the prefix from the
server as part of the HTML stream.
2021-12-02 17:49:43 -08:00
..
npm Remove Blocks (#20138) 2020-10-30 23:03:45 -07:00
src Implement identifierPrefix option for useId (#22855) 2021-12-02 17:49:43 -08:00
README.md Add Fiber Debugger (#8033) 2016-10-25 08:36:37 +01:00
flight-client.js Move remaining things to named exports (#18165) 2020-02-27 17:18:55 -08:00
flight-modules.js Enable prefer-const lint rules (#18451) 2020-04-01 12:35:52 -07:00
flight-server.js Move remaining things to named exports (#18165) 2020-02-27 17:18:55 -08:00
index.js Move remaining things to named exports (#18165) 2020-02-27 17:18:55 -08:00
package.json Remove Blocks (#20138) 2020-10-30 23:03:45 -07:00
persistent.js Move remaining things to named exports (#18165) 2020-02-27 17:18:55 -08:00
server.js Move remaining things to named exports (#18165) 2020-02-27 17:18:55 -08:00

README.md

react-noop-renderer

This package is the renderer we use for debugging Fiber. It is not intended to be used directly.