From 17ba2a8505c711f64682b168b991829a483f24f1 Mon Sep 17 00:00:00 2001 From: Rishav Narayan <78613789+Web-Dev-hash@users.noreply.github.com> Date: Sat, 10 Sep 2022 03:39:32 +0530 Subject: [PATCH] Switch updated to Routes --- src/App.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/App.js b/src/App.js index ee4ec23bdf..1a6513b9ef 100644 --- a/src/App.js +++ b/src/App.js @@ -2,7 +2,7 @@ import React from 'react'; import Navbar from './components/Navbar'; import './App.css'; import Home from './components/pages/Home'; -import { BrowserRouter as Router, Switch, Route } from 'react-router-dom'; +import { BrowserRouter as Router, Routes, Route } from 'react-router-dom'; import Services from './components/pages/Services'; import Products from './components/pages/Products'; import SignUp from './components/pages/SignUp'; @@ -12,15 +12,16 @@ function App() { <> - - - - - - + + } /> + } /> + } /> + } /> + ); } export default App; +