rescript-react icon indicating copy to clipboard operation
rescript-react copied to clipboard

React@18 support

Open bloodyowl opened this issue 3 years ago • 2 comments

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.createRootReactDOM.createRoot
  • ~~ReactDOM.Experimental.createBlockingRoot~~
  • ReactDOM.Experimental.rootReactDOM.Root.t
  • ReactDOM.Experimental.renderReactDOM.Root.render
  • ReactDOM.Root.unmount
  • React.useDeferredValue
  • React.useInsertionEffect{,0,1,2,3,4,5,6,7}
  • React.useSyncExternalStore
  • React.useId

bloodyowl avatar Dec 09 '21 10:12 bloodyowl

I believe this list is missing useTransition /startTransition?

tom-sherman avatar Dec 19 '21 18:12 tom-sherman

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

cometkim avatar Dec 20 '21 03:12 cometkim