Skip to content

Commit a665064

Browse files
committed
fix 1
1 parent d5fd64a commit a665064

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/App.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { useState, useEffect } from "react";
2-
import { BrowserRouter as Router, Routes, Route } from "react-router-dom";
2+
import { BrowserRouter, Routes, Route } from "react-router-dom";
33
import Blogs from "./pages/Blogs";
44
import About from "./pages/About";
55
import BlogPage from "./pages/BlogPage";
@@ -20,13 +20,13 @@ const App: React.FC = () => {
2020
{active ? (
2121
<PreLoader />
2222
) : (
23-
<Router>
23+
<BrowserRouter>
2424
<Routes>
2525
<Route path="/" Component={Blogs} />
2626
<Route path="/about" Component={About} />
2727
<Route path="/blogPage" Component={BlogPage} />
2828
</Routes>
29-
</Router>
29+
</BrowserRouter>
3030
)}
3131
</>
3232
);

0 commit comments

Comments
 (0)