Skip to content

Commit ba76b96

Browse files
unicodeveloperpeggyrayzis
authored andcommitted
Add instructions for installing React
1 parent a165f56 commit ba76b96

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

docs/source/tutorial/client.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,13 @@ Let's connect our client to React.
7171

7272
<h2 id="react-apollo">Connect your client to React</h2>
7373

74-
React is the choice of framework for our UI frontend in this tutorial.
74+
React is the choice of framework for our UI frontend in this tutorial. Install React using `create-react-app` via `npx`:
75+
76+
```bash
77+
npx create-react-app frontend
78+
```
79+
80+
Now, let's connect Apollo Client to our React app.
7581

7682
To connect Apollo Client to React, you will need to invoke the `ApolloProvider` component exported from the `react-apollo` package. The `ApolloProvider` component is similar to React’s context provider. It wraps your React app and places the client on the context, which allows you to access it from anywhere in your component tree.
7783

0 commit comments

Comments
 (0)