Skip to content

Commit

Permalink
switch to createRoot
Browse files Browse the repository at this point in the history
  • Loading branch information
xinaesthete committed Jun 4, 2024
1 parent 8bf7ba7 commit f3bb956
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/catalog/catalog_index.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import React from "react";
import ReactDOM from "react-dom";
import { createRoot } from 'react-dom/client';
import App from "./catalog";

//console.log('this is the place to build the catalog/project browse interface...')
const root = document.createElement('div');
document.body.appendChild(root);
ReactDOM.render(React.createElement(App, null), root);
const container = document.createElement('div');
document.body.appendChild(container);
const root = createRoot(container);
root.render(<App />);

0 comments on commit f3bb956

Please sign in to comment.