forked from QuicSwap/meta-migrate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.tsx
27 lines (25 loc) · 1.05 KB
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import React from "react"
import ReactDOM from "react-dom"
import "./index.css"
import reportWebVitals from "./reportWebVitals"
import App, { CatalogPage, RecipePage } from "./App"
import * as buffer from "buffer"
import { BrowserRouter, Route, Routes } from "react-router-dom"
;(window as any).Buffer = buffer.Buffer // https://github.com/isaacs/core-util-is/issues/27#issuecomment-878969583
ReactDOM.render(
<React.StrictMode>
<BrowserRouter basename="/dapp/testnet/meta-recipes">
<Routes>
<Route path="/" element={<App />}>
<Route path="/" element={<CatalogPage />} />
{/* <Route path=":recipeId" element={<RecipePage />} /> */}
</Route>
</Routes>
</BrowserRouter>
</React.StrictMode>,
document.getElementById("root")
)
// If you want to start measuring performance in your app, pass a function
// to log results (for example: reportWebVitals(console.log))
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
reportWebVitals()