rescript-lang/rescript-react

React@18 support

bloodyowl opened this issue · 2 comments

Context

React 18 is in RC and will soon be released:

reactwg/react-18#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

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