Skip to content

Commit

Permalink
Merge pull request #138 from adrien-dimitri/issue#132
Browse files Browse the repository at this point in the history
Replaced deprecated render with createRoot
  • Loading branch information
alfredodeza authored Nov 5, 2024
2 parents 19f801d + 1e25863 commit f4684ac
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
*/

import React from "react";
import { render } from "react-dom";
import { createRoot } from "react-dom/client";

import App from "./App";

render(<App></App>, document.getElementById("app"));
const container = document.getElementById("app");
const root = createRoot(container);
root.render(<App />);

0 comments on commit f4684ac

Please sign in to comment.