Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including react-apollo with all npm packages installed. Try it out:

require("@types/react/package.json"); // @types/react is a peer dependency. require("apollo-client/package.json"); // apollo-client is a peer dependency. require("graphql/package.json"); // graphql is a peer dependency. require("react/package.json"); // react is a peer dependency. require("react-dom/package.json"); // react-dom is a peer dependency. var reactApollo = require("react-apollo")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

react-apollo v3.1.5

React Apollo Hooks, Components, and HOC.

React Apollo

React Apollo

npm version Build Status Join the community on Spectrum

React Apollo allows you to fetch data from your GraphQL server and use it in building complex and reactive UIs using the React framework. React Apollo may be used in any context that React may be used. In the browser, in React Native, or in Node.js when you want to do server-side rendering.

Installation

npm install react-apollo

Documentation

All Apollo Client documentation, including React Apollo usage articles and helpful recipes, lives on https://www.apollographql.com/docs/react/

For the React Apollo API reference, visit https://www.apollographql.com/docs/react/api/react-apollo.html

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free