Socket
Book a DemoInstallSign in
Socket

@nhost/react-apollo

Package Overview
Dependencies
Maintainers
2
Versions
178
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nhost/react-apollo

Nhost React Apollo client

latest
Source
npmnpm
Version
18.0.2
Version published
Weekly downloads
838
90.89%
Maintainers
2
Weekly downloads
 
Created
Source

@nhost/react-apollo

For easy usage of Apollo and React

npm npm license: MIT

Documentation

Reference documentation

Install

$ npm install @nhost/react-apollo @nhost/react @apollo/client graphql react react-dom

or

$ yarn add @nhost/react-apollo @nhost/react @apollo/client graphql react react-dom

Usage

import React from 'react'
import ReactDOM from 'react-dom'
import { NhostClient, NhostProvider } from '@nhost/react'
import { NhostApolloProvider } from '@nhost/react-apollo'

import App from './App'

const nhost = new NhostClient({
  subdomain: '<Your Nhost project subdomain>',
  region: '<Your Nhost project region>'
})

ReactDOM.render(
  <React.StrictMode>
    <NhostProvider nhost={nhost}>
      <NhostApolloProvider nhost={nhost}>
        <App />
      </NhostApolloProvider>
    </NhostProvider>
  </React.StrictMode>,
  document.getElementById('root')
)

Keywords

nhost

FAQs

Package last updated on 29 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts