Skip to content

Commit

Permalink
Update Relay docs (#7041)
Browse files Browse the repository at this point in the history
  • Loading branch information
orta authored and iansu committed May 13, 2019
1 parent e2f43a0 commit b59d427
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docusaurus/docs/adding-relay.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ id: adding-relay
title: Adding Relay
---

Relay is a framework for building data-driven React applications powered by GraphQL. The current release candidate of Relay works with Create React App projects out of the box using Babel Macros. Simply set up your project as laid out in the [Relay documentation](https://facebook.github.io/relay/), then make sure you have a version of the babel plugin providing the macro.
Relay is a framework for building data-driven React applications powered by GraphQL. The current release of Relay works with Create React App projects out of the box using Babel Macros. Simply set up your project as laid out in the [Relay documentation](https://facebook.github.io/relay/), then make sure you have a version of the babel plugin providing the macro.

To add it, run:

```sh
npm install --save babel-plugin-relay@dev
npm install --save babel-plugin-relay
```

Alternatively you may use `yarn`:

```sh
yarn upgrade babel-plugin-relay@dev
yarn upgrade babel-plugin-relay
```

Then, wherever you use the `graphql` template tag, import the macro:
Expand Down

0 comments on commit b59d427

Please sign in to comment.