Skip to content

Commit dcaf07e

Browse files
authored
chore(docs): add mention that React will drop all extraneous props for <style> when using the precedence property (#7643)
1 parent a42121e commit dcaf07e

File tree

1 file changed

+1
-0
lines changed
  • src/content/reference/react-dom/components

1 file changed

+1
-0
lines changed

Diff for: src/content/reference/react-dom/components/style.md

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ To opt into this behavior, provide the `href` and `precedence` props. React will
5252
This special treatment comes with two caveats:
5353

5454
* React will ignore changes to props after the style has been rendered. (React will issue a warning in development if this happens.)
55+
* React will drop all extraneous props when using the `precedence` prop (beyond `href` and `precedence`).
5556
* React may leave the style in the DOM even after the component that rendered it has been unmounted.
5657

5758
---

0 commit comments

Comments
 (0)