experimental_useEvent (#25229)

This commit adds a new hook `useEvent` per the RFC [here](https://github.com/reactjs/rfcs/pull/220), gated as experimental. 

Co-authored-by: Rick Hanlon <[email protected]>
Co-authored-by: Rick Hanlon <[email protected]>
Co-authored-by: Lauren Tan <[email protected]>
This commit is contained in:
Lauren Tan
2022-09-14 11:39:06 -07:00
committed by GitHub
co-authored by Rick Hanlon Rick Hanlon
parent 3e745d92b6
commit 9329254ab5
26 changed files with 1027 additions and 38 deletions
+2 -1
View File
@@ -424,5 +424,6 @@
"436": "Stylesheet resources need a unique representation in the DOM while hydrating and more than one matching DOM Node was found. To fix, ensure you are only rendering one stylesheet link with an href attribute of \"%s\".",
"437": "the \"precedence\" prop for links to stylesheets expects to receive a string but received something of type \"%s\" instead.",
"438": "An unsupported type was passed to use(): %s",
"439": "We didn't expect to see a forward reference. This is a bug in the React Server."
"439": "We didn't expect to see a forward reference. This is a bug in the React Server.",
"440": "An event from useEvent was called during render."
}