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 400,000 packages pre-installed, including @apollo/react-hooks 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 reactHooks = require("@apollo/react-hooks")

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

@apollo/react-hooks v3.1.5

React Apollo Hooks.

React Apollo

React Apollo - Hooks

npm version Build Status Join the community on Spectrum

React Apollo useQuery, useLazyQuery, useMutation, useSubscription and useApolloClient hooks.

Installation

npm install @apollo/react-hooks

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