2022-09-22 10:47:42 -07:00
|
|
|
/*
|
2025-01-17 13:55:50 -04:00
|
|
|
*/
|
2022-09-22 10:47:42 -07:00
|
|
|
|
2022-06-19 07:00:41 -07:00
|
|
|
import React from 'react'
|
2025-01-17 13:55:50 -04:00
|
|
|
import ReactDOM from 'react-dom/client'
|
2022-06-19 07:00:41 -07:00
|
|
|
import App from './App'
|
|
|
|
|
import { QueryParamProvider } from 'use-query-params'
|
|
|
|
|
|
|
|
|
|
// Importing the Bootstrap CSS
|
|
|
|
|
import 'bootstrap/dist/css/bootstrap.min.css'
|
2025-02-01 13:04:34 -04:00
|
|
|
import { BrowserRouter } from 'react-router-dom'
|
2022-06-19 07:00:41 -07:00
|
|
|
|
2025-01-17 13:55:50 -04:00
|
|
|
const root = ReactDOM.createRoot(document.getElementById('root'))
|
|
|
|
|
|
|
|
|
|
root.render(
|
|
|
|
|
<QueryParamProvider>
|
2025-02-01 13:04:34 -04:00
|
|
|
{/* <BrowserRouter> should be wrap all the components that use react-router-dom */}
|
|
|
|
|
<BrowserRouter>
|
|
|
|
|
<App />
|
|
|
|
|
</BrowserRouter>
|
2025-01-17 13:55:50 -04:00
|
|
|
</QueryParamProvider>
|
|
|
|
|
)
|
2022-07-27 15:19:15 -07:00
|
|
|
|
|
|
|
|
// Updating to React v18
|
|
|
|
|
// https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html#updates-to-client-rendering-apis
|