Skip to content

Commit

Permalink
Use new api
Browse files Browse the repository at this point in the history
  • Loading branch information
miafan23 committed Mar 22, 2024
1 parent 83bb831 commit d96e896
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/docs/index.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React from 'react';
import ReactDOM from 'react-dom';
import { createRoot } from 'react-dom/client';
import App from './app';
import './prism-theme.css';

const container = document.createElement('div');
const root = createRoot(container);
document.body.appendChild(container);
ReactDOM.render(<App />, container);
root.render(<App />);

0 comments on commit d96e896

Please sign in to comment.