diff --git a/src/App.jsx b/src/App.jsx index e45b27b..38ace8e 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -16,17 +16,17 @@ function App() { const modal = useRef(); function handleModal() { - DOMMethods.showModal(modal.current) + modal.current.showModal() } function handleClose() { - DOMMethods.closeModal(modal.current) + modal.current.close() } return ( <> -