Created
March 25, 2023 10:27
-
-
Save joshzee/66e276ee8c0131e428be178b53bda320 to your computer and use it in GitHub Desktop.
Problem to solve React 17 > React 18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import ReactDOM from "react-dom"; | |
import { createRoot } from "react-dom/client"; | |
import App from "./App"; | |
const root = createRoot(document.getElementById("root")); | |
root.render( | |
<React.StrictMode> | |
<App /> | |
</React.StrictMode> | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment