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

Change react-dom to react-dom/client

Open benfaerber opened this issue 3 years ago • 0 comments

React recommends importing the client for the new create root API. Importing from "react-dom" throws this warning in React 18

Warning: You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client

In my project I use this modification and it removes the error.

benfaerber avatar Jun 30 '22 05:06 benfaerber