react/packages/react-art
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 Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
src Implement identifierPrefix option for useId (#22855) 2021-12-02 17:49:43 -08:00
Circle.js Move remaining things to named exports (#18165) 2020-02-27 17:18:55 -08:00
README.md Update README URLS to HTTPS (#11635) 2017-11-27 18:13:41 -08:00
Rectangle.js Move remaining things to named exports (#18165) 2020-02-27 17:18:55 -08:00
Wedge.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 Scheduler indirection (#21107) 2021-03-28 14:13:38 -07:00

README.md

React ART

React ART is a JavaScript library for drawing vector graphics using React.

It provides declarative and reactive bindings to the ART library.

Using the same declarative API you can render the output to either Canvas, SVG or VML (IE8).