File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { PersistQueryClientProvider } from '@tanstack/react-query-persist-client'
22import 'normalize.css'
3- import React from 'react'
4- import ReactDOM from 'react-dom'
3+ import 'react-simple-toasts/dist/style.css'
54import 'src/assets/index.css'
65import { ConfigurationWrapper } from 'src/features/remoteConfig/'
76import { persister , queryClient } from 'src/lib/react-query'
87import { AppErrorBoundary } from 'src/providers/AppErrorBoundary'
98import { AppRoutes } from './routes/AppRoutes'
109
11- ReactDOM . render (
12- < React . StrictMode >
13- < AppErrorBoundary >
14- < PersistQueryClientProvider client = { queryClient } persistOptions = { { persister : persister } } >
15- < ConfigurationWrapper >
16- < AppRoutes />
17- </ ConfigurationWrapper >
18- </ PersistQueryClientProvider >
19- </ AppErrorBoundary >
20- </ React . StrictMode > ,
21- document . getElementById ( 'root' )
10+ import { createRoot } from 'react-dom/client'
11+ const container = document . getElementById ( 'root' )
12+ if ( ! container ) {
13+ throw new Error ( 'Failed to find the root element' )
14+ }
15+ const root = createRoot ( container )
16+ root . render (
17+ < AppErrorBoundary >
18+ < PersistQueryClientProvider client = { queryClient } persistOptions = { { persister : persister } } >
19+ < ConfigurationWrapper >
20+ < AppRoutes />
21+ </ ConfigurationWrapper >
22+ </ PersistQueryClientProvider >
23+ </ AppErrorBoundary >
2224)
You can’t perform that action at this time.
0 commit comments