index.js 665 B

123456789101112131415161718192021
  1. import React from "react";
  2. import ReactDOM from "react-dom";
  3. import { ApolloProvider } from "@apollo/client";
  4. import "styles/index.css";
  5. import App from "./App";
  6. import reportWebVitals from "./reportWebVitals";
  7. import apolloClient from './apollo/client';
  8. ReactDOM.render(
  9. <React.StrictMode>
  10. <ApolloProvider client={apolloClient}>
  11. <App />
  12. </ApolloProvider>
  13. </React.StrictMode>,
  14. document.getElementById("root")
  15. );
  16. // If you want to start measuring performance in your app, pass a function
  17. // to log results (for example: reportWebVitals(console.log))
  18. // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
  19. reportWebVitals();