Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

Commit

Permalink
Update index.jsx
Browse files Browse the repository at this point in the history
add hash routing
  • Loading branch information
mapachurro authored Jul 3, 2024
1 parent 1a5d044 commit f7487bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/index.jsx
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import React from 'react';
import { createRoot } from 'react-dom/client';
import { BrowserRouter } from 'react-router-dom';
import { HashRouter } from 'react-router-dom';
import App from './App';

const container = document.getElementById('root');
const root = createRoot(container);

root.render(
<BrowserRouter basename="/web3-glossary-website">
<HashRouter>
<App />
</BrowserRouter>
</HashRouter>,
);

0 comments on commit f7487bb

Please sign in to comment.