Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/the-road-to-graphql/react-apollo-link-state-example
A React application using Apollo Client with apollo-link-state for local state management.
https://github.com/the-road-to-graphql/react-apollo-link-state-example
apollo apollo-client apollo-link-state apollographql local-state-management react react-apollo reactjs
Last synced: 3 months ago
JSON representation
A React application using Apollo Client with apollo-link-state for local state management.
- Host: GitHub
- URL: https://github.com/the-road-to-graphql/react-apollo-link-state-example
- Owner: the-road-to-graphql
- Created: 2018-05-01T07:57:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-06-12T08:41:55.000Z (over 4 years ago)
- Last Synced: 2024-05-18T19:16:58.640Z (9 months ago)
- Topics: apollo, apollo-client, apollo-link-state, apollographql, local-state-management, react, react-apollo, reactjs
- Language: JavaScript
- Homepage: https://www.robinwieruch.de/react-apollo-link-state-tutorial
- Size: 1.95 MB
- Stars: 21
- Watchers: 4
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
- awesome-react-graphql - Apollo-Link-State in React
README
# react-apollo-link-state-example
[![Build Status](https://travis-ci.org/the-road-to-graphql/react-apollo-link-state-example.svg?branch=master)](https://travis-ci.org/the-road-to-graphql/react-apollo-link-state-example) [![Slack](https://slack-the-road-to-learn-react.wieruch.com/badge.svg)](https://slack-the-road-to-learn-react.wieruch.com/) [![Greenkeeper badge](https://badges.greenkeeper.io/the-road-to-graphql/react-apollo-link-state-example.svg)](https://greenkeeper.io/)
A React application using Apollo Client with [apollo-link-state](https://www.apollographql.com/docs/link/links/state.html) for local state management. While **apollo-link-state (as alternative to React's local state, Redux or MobX)** is used to manage selected items in a list as local data, the remaining queries and mutations are used for remote data.
## Installation
* `git clone [email protected]:the-road-to-graphql/react-apollo-link-state-example.git`
* cd react-apollo-link-state-example
* npm install
* [add your own REACT_APP_GITHUB_PERSONAL_ACCESS_TOKEN in .env file](https://help.github.com/articles/creating-a-personal-access-token-for-the-command-line/)
* scopes/permissions you need to check: admin:org, repo, user, notifications
* npm start
* visit `http://localhost:3000`## Want to learn more about React + GraphQL + Apollo?
* Don't miss [upcoming Tutorials and Courses](https://www.getrevue.co/profile/rwieruch)
* Check out current [React Courses](https://roadtoreact.com)