Skip to content

Commit

Permalink
new hash router
Browse files Browse the repository at this point in the history
  • Loading branch information
cburbano committed Oct 16, 2023
1 parent 026616a commit f1f0fb2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "caucafe",
"version": "0.1.0",
"private": true,
"homepage": "https://bhecra.github.io/caucafe/",
"dependencies": {
"@dile/dile-input": "^2.0.5",
"@emotion/react": "^11.11.1",
Expand Down
6 changes: 3 additions & 3 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { BrowserRouter } from 'react-router-dom';
import { HashRouter } from 'react-router-dom';
const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
);
Expand All @@ -20,9 +20,9 @@ type InfoLote = {
const Lotes: InfoLote[] = [];

root.render(
<BrowserRouter basename='/'>
<HashRouter basename='/'>
<App />
</BrowserRouter>
</HashRouter>
);

// If you want to start measuring performance in your app, pass a function
Expand Down

0 comments on commit f1f0fb2

Please sign in to comment.