diff --git a/react-advanced-tag1/src/App.tsx b/react-advanced-tag1/src/App.tsx
index 34f3776..8c4b92b 100644
--- a/react-advanced-tag1/src/App.tsx
+++ b/react-advanced-tag1/src/App.tsx
@@ -9,6 +9,7 @@ import FormsPage from './routes/FormsPage'
import MemoCallbackPage from './routes/MemoCallbackPage'
import ComponentWrapperPage from './routes/ComponentWrapperPage'
import ZustandCounterPage from './routes/ZustandCounterPage'
+import ModalPage from './routes/ModalPage'
function App() {
@@ -20,6 +21,7 @@ function App() {
} />
} />
} />
+ } />
} />
diff --git a/react-advanced-tag1/src/common/components/Header/Navigation.tsx b/react-advanced-tag1/src/common/components/Header/Navigation.tsx
index ef8ceea..39f3602 100644
--- a/react-advanced-tag1/src/common/components/Header/Navigation.tsx
+++ b/react-advanced-tag1/src/common/components/Header/Navigation.tsx
@@ -8,6 +8,7 @@ export default function Navigation () {
Forms
Memo und Callback
Component Wrapper
+ Modal
ZustandCounterPage
);
diff --git a/react-advanced-tag1/src/routes/ComponentWrapperPage.tsx b/react-advanced-tag1/src/routes/ComponentWrapperPage.tsx
index 8572513..5f83371 100644
--- a/react-advanced-tag1/src/routes/ComponentWrapperPage.tsx
+++ b/react-advanced-tag1/src/routes/ComponentWrapperPage.tsx
@@ -1,20 +1,11 @@
-import { createPortal } from "react-dom";
import ComponentWrapper from "../common/components/ComponentWrapper/ComponentWrapper";
-import Modal from "../common/components/Modal";
-import { useState } from "react";
export default function ComponentWrapperPage() {
-
- const [modalOpen, setModalOpen] = useState(false);
return (
Hallo
-
-
- {modalOpen && createPortal( setModalOpen(false)}/>,document.getElementById("modal") as HTMLElement)}
-
);
}
\ No newline at end of file
diff --git a/react-advanced-tag1/src/routes/ModalPage.tsx b/react-advanced-tag1/src/routes/ModalPage.tsx
new file mode 100644
index 0000000..b84a610
--- /dev/null
+++ b/react-advanced-tag1/src/routes/ModalPage.tsx
@@ -0,0 +1,14 @@
+import { useState } from "react";
+import { createPortal } from "react-dom";
+import ComponentWrapper from "../common/components/ComponentWrapper/ComponentWrapper";
+import Modal from "../common/components/Modal";
+
+export default function ModalPage() {
+ const [modalOpen, setModalOpen] = useState(false);
+ return (
+
+
+ {modalOpen && createPortal( setModalOpen(false)}/>,document.getElementById("modal") as HTMLElement)}
+
+ );
+}
\ No newline at end of file