Search⌘ K
AI Features

Installing Packages to Use React with Apollo GraphQL

Explore how to set up a React application with Apollo Client for GraphQL. Understand the installation of key npm packages including Apollo Client libraries, React Apollo, and router tools. This lesson helps you prepare your project structure and configure Apollo Client for local development using create-react-app or a custom setup.

We'll cover the following...

For this application, no elaborate React setup is needed. Simply use create-react-app to create your React application. If you want to have an elaborate React setup instead, see this setup guide for using Webpack with React. To get started, the following steps have to be performed:

  • Create a new React application with create-react-app
  • Create a folder/file structure for your project (recommendation
...