From b0a2b6c4d2da815b01f31c3a8c93a0f0e267b07d Mon Sep 17 00:00:00 2001 From: Nishant Kaushal <101548649+nishant0708@users.noreply.github.com> Date: Fri, 20 Sep 2024 21:04:58 +0530 Subject: [PATCH] updated --- package-lock.json | 42 ++++++++++++++++++++++++++++++++++++++++++ package.json | 1 + src/App.jsx | 18 ++++++++++++------ src/Home/Home.jsx | 7 +++++++ 4 files changed, 62 insertions(+), 6 deletions(-) create mode 100644 src/Home/Home.jsx diff --git a/package-lock.json b/package-lock.json index 2932e69..edaa8cd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -23,6 +23,7 @@ "eslint-plugin-react-refresh": "^0.4.9", "globals": "^15.9.0", "postcss": "^8.4.47", + "react-router-dom": "^6.26.2", "tailwindcss": "^3.4.12", "vite": "^5.4.1", "vite-plugin-eslint": "^1.8.1" @@ -1059,6 +1060,15 @@ "node": ">=14" } }, + "node_modules/@remix-run/router": { + "version": "1.19.2", + "resolved": "https://registry.npmjs.org/@remix-run/router/-/router-1.19.2.tgz", + "integrity": "sha512-baiMx18+IMuD1yyvOGaHM9QrVUPGGG0jC+z+IPHnRJWUAUvaKuWKyE8gjDj2rzv3sz9zOGoRSPgeBVHRhZnBlA==", + "dev": true, + "engines": { + "node": ">=14.0.0" + } + }, "node_modules/@rollup/pluginutils": { "version": "4.2.1", "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.1.tgz", @@ -4476,6 +4486,38 @@ "node": ">=0.10.0" } }, + "node_modules/react-router": { + "version": "6.26.2", + "resolved": "https://registry.npmjs.org/react-router/-/react-router-6.26.2.tgz", + "integrity": "sha512-tvN1iuT03kHgOFnLPfLJ8V95eijteveqdOSk+srqfePtQvqCExB8eHOYnlilbOcyJyKnYkr1vJvf7YqotAJu1A==", + "dev": true, + "dependencies": { + "@remix-run/router": "1.19.2" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "react": ">=16.8" + } + }, + "node_modules/react-router-dom": { + "version": "6.26.2", + "resolved": "https://registry.npmjs.org/react-router-dom/-/react-router-dom-6.26.2.tgz", + "integrity": "sha512-z7YkaEW0Dy35T3/QKPYB1LjMK2R1fxnHO8kWpUMTBdfVzZrWOiY9a7CtN8HqdWtDUWd5FY6Dl8HFsqVwH4uOtQ==", + "dev": true, + "dependencies": { + "@remix-run/router": "1.19.2", + "react-router": "6.26.2" + }, + "engines": { + "node": ">=14.0.0" + }, + "peerDependencies": { + "react": ">=16.8", + "react-dom": ">=16.8" + } + }, "node_modules/read-cache": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz", diff --git a/package.json b/package.json index f845e7a..44ca5a9 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "eslint-plugin-react-refresh": "^0.4.9", "globals": "^15.9.0", "postcss": "^8.4.47", + "react-router-dom": "^6.26.2", "tailwindcss": "^3.4.12", "vite": "^5.4.1", "vite-plugin-eslint": "^1.8.1" diff --git a/src/App.jsx b/src/App.jsx index 0716d3a..b7f11ec 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,9 +1,15 @@ +import { BrowserRouter as Router, Routes, Route } from "react-router-dom"; +import Home from "./Home/Home"; + const App = () => { return ( -