chore(docs): add mention that React will drop all extraneous props for <style> when using the precedence property (#7643)

This commit is contained in:
Sam Ko
2025-02-21 17:03:22 -08:00
committed by GitHub
parent a42121e479
commit dcaf07efd1

View File

@@ -52,6 +52,7 @@ To opt into this behavior, provide the `href` and `precedence` props. React will
This special treatment comes with two caveats:
* React will ignore changes to props after the style has been rendered. (React will issue a warning in development if this happens.)
* React will drop all extraneous props when using the `precedence` prop (beyond `href` and `precedence`).
* React may leave the style in the DOM even after the component that rendered it has been unmounted.
---