ApolloClient setup for CreateReactApp, Authorization, Subscription
Providing code for start new React App using ApolloClient
Follow document available at CreateReactApp to init your react app. And then install following modules use npm
cd myApp
npm install --save @apollo/react-hooks apollo-link apollo-link-http apollo-link-ws apollo-utilities apollo-link-context apollo-cache-inmemory apollo-client
Create Apollo Client
create a /src/client.js
Your App.js
Enjoy working with ApolloClient and see more documents available at