Skip to content

Commit

Permalink
updates example
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony0030 committed Mar 4, 2024
1 parent 6c762f2 commit 5a1d1d8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/example/Example.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import React from 'react';
import ReactDOM from 'react-dom';
import {createRoot} from 'react-dom/client';
import App from './App';

const appRoot = document.createElement('div');
const container = document.createElement('div');

appRoot.id = 'app';
document.body.appendChild(appRoot);
ReactDOM.render(<App />, appRoot);
document.body.appendChild(container);

const appRoot = createRoot(container);

appRoot.render(<App />);

0 comments on commit 5a1d1d8

Please sign in to comment.