Created
June 9, 2021 11:16
-
-
Save sayon-bitquery/b9eae3daebe7b899038ece7f33c37f3e to your computer and use it in GitHub Desktop.
This is the index.js file where we wrap the <App /> with <QueryClientProvider />
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import ReactDOM from 'react-dom'; | |
import './index.css'; | |
import App from './App'; | |
import reportWebVitals from './reportWebVitals'; | |
import { QueryClient, QueryClientProvider } from "react-query"; | |
const client = new QueryClient(); | |
ReactDOM.render( | |
<QueryClientProvider client={client}> | |
<App /> | |
</QueryClientProvider>, | |
document.getElementById('root') | |
); | |
reportWebVitals(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment