diff options
Diffstat (limited to 'admin/src/index.js')
-rw-r--r-- | admin/src/index.js | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/admin/src/index.js b/admin/src/index.js index d563c0f..f3e19c1 100644 --- a/admin/src/index.js +++ b/admin/src/index.js @@ -2,16 +2,18 @@ import React from 'react'; import ReactDOM from 'react-dom/client'; import './index.css'; import App from './App'; -import reportWebVitals from './reportWebVitals'; +import {BrowserRouter} from 'react-router-dom'; +import {QueryClient, QueryClientProvider} from 'react-query'; + +const queryClient = new QueryClient(); const root = ReactDOM.createRoot(document.getElementById('root')); root.render( <React.StrictMode> - <App /> + <BrowserRouter> + <QueryClientProvider client={queryClient}> + <App /> + </QueryClientProvider> + </BrowserRouter> </React.StrictMode> ); - -// 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(); |