Skip to content

Instantly share code, notes, and snippets.

@sayon-bitquery
Created June 9, 2021 11:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sayon-bitquery/b9eae3daebe7b899038ece7f33c37f3e to your computer and use it in GitHub Desktop.
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 />
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