Fork me on GitHub
#reagent
<
2022-04-22
>
Ben Halton14:04:03

hi there, I've upgraded to react 18 and get the following warning: react-dom.development.js:87 Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more:

Ben Halton14:04:28

I could write my own version of render-comp I guess - just wondering if there are plans to support this?

lilactown15:04:33

it's a little complicated rn with the new version. the API is different

lilactown15:04:05

e.g. there's no callback you can pass into the render method on the result of createRoot

Ben Halton16:04:52

ah I see yes - there's some discussion here: https://github.com/reactwg/react-18/discussions/5