-
Notifications
You must be signed in to change notification settings - Fork 16
/
index.tsx
40 lines (35 loc) · 1.28 KB
/
index.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import React from 'react';
import ReactDOM from 'react-dom/client';
import { ApolloProvider } from '@apollo/client';
import { loadDevMessages, loadErrorMessages } from '@apollo/client/dev';
import * as Tooltip from '@radix-ui/react-tooltip';
import reportWebVitals from './reportWebVitals';
import { RouterProvider } from 'react-router-dom';
import router from './router';
import client from './apollo/client';
import './reset.css';
import './index.css';
if (import.meta.env.DEV) {
loadDevMessages();
loadErrorMessages();
}
console.log(
'%c📝 The Apollo Client maintainers want your feedback! Please take our survey 💜\n🔗 https://o0urpu09l9p.typeform.com/to/SrKsN0nv',
'background-color:#3f20ba;color:#fff;font-size:1.25em;font-weight:bold;'
);
const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
);
root.render(
<React.StrictMode>
<ApolloProvider client={client}>
<Tooltip.Provider delayDuration={300}>
<RouterProvider router={router} />
</Tooltip.Provider>
</ApolloProvider>
</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();