From f616a9038daf4ff93ac3f06348112036edb65749 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Mon, 9 Sep 2024 12:16:51 +0530 Subject: [PATCH] feat: wrap app in browser router --- src/App.tsx | 10 +++------- src/index.tsx | 5 ++++- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 4a791830..0c060a28 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,16 +1,12 @@ import React from 'react'; -import { BrowserRouter } from 'react-router-dom'; import { GlobalInfoProvider } from "./context/globalInfo"; import { PageWrapper } from "./pages/PageWrappper"; function App() { - return ( - - - - - + + + ); } diff --git a/src/index.tsx b/src/index.tsx index b7688442..8c14f60a 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1,6 +1,7 @@ import React from 'react'; import ReactDOM from 'react-dom/client'; import './index.css'; +import { BrowserRouter } from 'react-router-dom'; import App from './App'; const root = ReactDOM.createRoot( @@ -8,7 +9,9 @@ const root = ReactDOM.createRoot( ); root.render( - + + + );