mirror of
https://github.com/tlsnotary/website.git
synced 2026-01-08 21:48:05 -05:00
Going back to browserrouter
This commit is contained in:
@@ -1,8 +1,5 @@
|
||||
import Navbar from './components/Navbar';
|
||||
import Hero from './components/Hero';
|
||||
import Projects from './components/Projects';
|
||||
import Discord from './components/Discord';
|
||||
import Team from './components/Team';
|
||||
import Roadmap from './components/Roadmap';
|
||||
import Usecases from './components/Usecases';
|
||||
import About from './components/About';
|
||||
|
||||
@@ -2,17 +2,17 @@ import 'react';
|
||||
import ReactDOM from 'react-dom/client';
|
||||
import './index.css';
|
||||
import HomePage from './HomePage';
|
||||
import { HashRouter, Routes, Route } from 'react-router-dom';
|
||||
import { BrowserRouter, Routes, Route } from 'react-router-dom';
|
||||
import reportWebVitals from './reportWebVitals';
|
||||
import './config'
|
||||
|
||||
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement);
|
||||
root.render(
|
||||
<HashRouter>
|
||||
<BrowserRouter>
|
||||
<Routes>
|
||||
<Route index element={<HomePage />} />
|
||||
</Routes>
|
||||
</HashRouter>
|
||||
</BrowserRouter>
|
||||
);
|
||||
|
||||
// If you want to start measuring performance in your app, pass a function
|
||||
|
||||
Reference in New Issue
Block a user