ql
1import React from 'react';
2import ReactDOM from 'react-dom/client';
3import { Provider } from 'react-redux';
4import { ApolloProvider } from '@apollo/client';
5import client from "./apollo.ts";
6import App from './components/App';
7import store from "./store/store.ts";
8
9
10const rootElement = document.getElementById('root');
11if (!rootElement) throw new Error('Failed to find the root element');
12const root = ReactDOM.createRoot(rootElement);
13
14root.render(
15<React.StrictMode>
16<ApolloProvider client={client}>
17<Provider store={store}>
18<App />
19</Provider>
20</ApolloProvider>
21</React.StrictMode>,
22);