rescript-react
rescript-react copied to clipboard
React@18 support
Context
React 18 is in RC and will soon be released:
https://github.com/reactwg/react-18/discussions/112
Updates
- Deprecate
ReactDOM.render
-
ReactDOM.Experimental.createRoot
→ReactDOM.createRoot
- ~~
ReactDOM.Experimental.createBlockingRoot
~~ -
ReactDOM.Experimental.root
→ReactDOM.Root.t
-
ReactDOM.Experimental.render
→ReactDOM.Root.render
-
ReactDOM.Root.unmount
-
React.useDeferredValue
-
React.useInsertionEffect{,0,1,2,3,4,5,6,7}
-
React.useSyncExternalStore
-
React.useId
I believe this list is missing useTransition
/startTransition
?
I have binding to useMutableSource
(former version of useSyncExternalStore
)
https://github.com/reason-seoul/snowpack-rescript-react/blob/07a59a6/src/bindings/ReactExperimental.res#L4-L26
guess it might help