Skip to content

Instantly share code, notes, and snippets.

@kaushik94
Created September 25, 2021 18:02
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 kaushik94/7fdaa80749a0031dc1bc7137ae9695cf to your computer and use it in GitHub Desktop.
Save kaushik94/7fdaa80749a0031dc1bc7137ae9695cf to your computer and use it in GitHub Desktop.
Create todos app - configure
// src/index.js
import React from "react";
import ReactDOM from "react-dom";
import App from "./App";
import { NhostApolloProvider } from "@nhost/react-apollo";
ReactDOM.render(
<React.StrictMode>
<NhostApolloProvider gqlEndpoint="https://hasura-xxx.nhost.app/v1/graphql">
<App />
</NhostApolloProvider>
</React.StrictMode>,
document.getElementById("root")
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment