Spaces:
Running
Running
File size: 662 Bytes
47c0b4f cd7e5b4 47c0b4f cd7e5b4 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
import React from 'react'
import ReactDOM from 'react-dom/client'
import { Route, Routes, HashRouter } from 'react-router-dom'
import './index.css'
import { ThemeProvider } from './context/themeContext'
import Appbar from './components/Appbar'
import Calculator from './pages/Calculator'
const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement)
root.render(
<React.StrictMode>
<ThemeProvider>
<HashRouter>
<Routes>
<Route path='/' element={<Appbar />}>
<Route index element={<Calculator />} />
</Route>
</Routes>
</HashRouter>
</ThemeProvider>
</React.StrictMode>,
) |