mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
0270bf1be3
extract ReactModal elementApp and fix act warning in ut
9 lines
250 B
TypeScript
9 lines
250 B
TypeScript
import { createRoot } from 'react-dom/client';
|
|
import ReactModal from 'react-modal';
|
|
|
|
import App from './App';
|
|
|
|
const app = document.querySelector('#app');
|
|
const root = app && createRoot(app);
|
|
ReactModal.setAppElement('#app');
|
|
root?.render(<App />);
|