Skip to content

Commit

Permalink
🔧 chore: upgrade React to v18 (#82)
Browse files Browse the repository at this point in the history
* Update React to version 18

React 18 introduces a change in how the root rendering element is created.
https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html#updates-to-client-rendering-apis
  • Loading branch information
MonkeyDo authored Nov 10, 2022
1 parent 348ae6b commit d04c97b
Show file tree
Hide file tree
Showing 3 changed files with 11,034 additions and 256 deletions.
5 changes: 3 additions & 2 deletions docs/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from "react";
import ReactDOM from "react-dom";
import { createRoot } from "react-dom/client";
import Root from "./root";

ReactDOM.render(<Root />, document.getElementById("docsApp"));
const root = createRoot(document.getElementById("docsApp"));
root.render(<Root />);
Loading

0 comments on commit d04c97b

Please sign in to comment.