From 282a6af67b7ab8cce02f9c1e517008fbd775cf93 Mon Sep 17 00:00:00 2001 From: Kamal Wickramanayake Date: Wed, 1 Jul 2026 20:41:10 +0530 Subject: Added React Router sample app --- react/07-react-router/src/App.jsx | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 react/07-react-router/src/App.jsx (limited to 'react/07-react-router/src/App.jsx') diff --git a/react/07-react-router/src/App.jsx b/react/07-react-router/src/App.jsx new file mode 100644 index 0000000..ab7d824 --- /dev/null +++ b/react/07-react-router/src/App.jsx @@ -0,0 +1,30 @@ +import { Routes, Route } from "react-router"; + +import Navbar from "./components/Navbar"; +import HomePage from "./pages/HomePage" +import AboutPage from "./pages/AboutPage" +import AuthLayout from "./features/auth/layouts/AuthLayout" +import Login from "./features/auth/components/Login" +import Register from "./features/auth/components/Register" +import PostList from "./features/posts/components/PostList" + +function App() { + return ( +
+ + + + } /> + } /> + } /> + + }> + } /> + } /> + + +
+ ) +} + +export default App -- cgit v1.2.3