├── .gitignore ├── assets └── images │ └── image.png ├── index.html ├── package.json ├── src ├── App.jsx ├── Components │ └── ProtectedRoute.jsx ├── Pages │ ├── Dashboard │ │ ├── index.css │ │ └── index.jsx │ ├── Login │ │ ├── index.css │ │ └── index.jsx │ └── NotFound │ │ ├── index.jsx │ │ └── notfound.module.css ├── main.jsx └── routes │ └── routes.jsx └── vite.config.js /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/midudev/react-router-dom-6-protected-route-example/HEAD/.gitignore -------------------------------------------------------------------------------- /assets/images/image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/midudev/react-router-dom-6-protected-route-example/HEAD/assets/images/image.png -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/midudev/react-router-dom-6-protected-route-example/HEAD/index.html -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/midudev/react-router-dom-6-protected-route-example/HEAD/package.json -------------------------------------------------------------------------------- /src/App.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/midudev/react-router-dom-6-protected-route-example/HEAD/src/App.jsx -------------------------------------------------------------------------------- /src/Components/ProtectedRoute.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/midudev/react-router-dom-6-protected-route-example/HEAD/src/Components/ProtectedRoute.jsx -------------------------------------------------------------------------------- /src/Pages/Dashboard/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/midudev/react-router-dom-6-protected-route-example/HEAD/src/Pages/Dashboard/index.css -------------------------------------------------------------------------------- /src/Pages/Dashboard/index.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/midudev/react-router-dom-6-protected-route-example/HEAD/src/Pages/Dashboard/index.jsx -------------------------------------------------------------------------------- /src/Pages/Login/index.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/midudev/react-router-dom-6-protected-route-example/HEAD/src/Pages/Login/index.css -------------------------------------------------------------------------------- /src/Pages/Login/index.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/midudev/react-router-dom-6-protected-route-example/HEAD/src/Pages/Login/index.jsx -------------------------------------------------------------------------------- /src/Pages/NotFound/index.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/midudev/react-router-dom-6-protected-route-example/HEAD/src/Pages/NotFound/index.jsx -------------------------------------------------------------------------------- /src/Pages/NotFound/notfound.module.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/midudev/react-router-dom-6-protected-route-example/HEAD/src/Pages/NotFound/notfound.module.css -------------------------------------------------------------------------------- /src/main.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/midudev/react-router-dom-6-protected-route-example/HEAD/src/main.jsx -------------------------------------------------------------------------------- /src/routes/routes.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/midudev/react-router-dom-6-protected-route-example/HEAD/src/routes/routes.jsx -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/midudev/react-router-dom-6-protected-route-example/HEAD/vite.config.js --------------------------------------------------------------------------------