Skip to content

Commit

Permalink
feat: fix problem of react-modal warning in browser
Browse files Browse the repository at this point in the history
  • Loading branch information
augusto committed Sep 6, 2023
1 parent c1d8dc9 commit d5747ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { StrictMode } from 'react';
import * as ReactDOM from 'react-dom/client';
import { App } from './app/app';
import Modal from 'react-modal'

Modal.setAppElement('#root')

const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
Expand Down

0 comments on commit d5747ce

Please sign in to comment.