The Git tag for this section is relay-environment. It contains solutions to the exercises from the previous chapter, so if you haven't completed the Exercises section yourself, then you should move to this tag now so that you're up to date.
For more detailed instructions, see the To get the most out of this book section in the Preface.
For more detailed instructions, see the To get the most out of this book section in the Preface.
There are three parts to Relay that we'll need to install. Type the following at the command line:
npm install --save react-relay
npm install --save-dev babel-plugin-relay relay-compiler
You'll also need to update your .babelrc file to include the Babel plugin:
{
"presets": ["@babel/env", "@babel/react"],
"plugins": ["@babel/transform-runtime", "relay"]
}
Once you've done that, you're good to go.
The server you've been using already has...