ml-in-barcelona / jsoo-react

js_of_ocaml bindings for ReactJS. Based on ReasonReact.
https://ml-in-barcelona.github.io/jsoo-react
MIT License
138 stars 19 forks source link

examples of https://beta.reactjs.org/reference/react-dom/client/createRoot #175

Open zeroexcuses opened 1 year ago

zeroexcuses commented 1 year ago

Can we get examples on how to use https://beta.reactjs.org/reference/react-dom/client/createRoot ?

Thanks!

davesnx commented 1 year ago

Hi @zeroexcuses

There're currently no bindings for React 18 APIs under this repository.

If you really need it I recommend taking a look at how is defined https://github.com/ml-in-barcelona/jsoo-react/blob/main/lib/core.mli (It uses gen_js_api)