Skip to content

Commit f8d75a5

Browse files
authored
Update README.md
1 parent 1b77296 commit f8d75a5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ All interfaces, the React component `<Playground />` and all middlewares expose
6666

6767
#### Install
6868
```sh
69-
yarn add graphql-playground
69+
yarn add graphql-playground-react
7070
```
7171

7272
#### Use
7373
GraphQL Playground provides a React component responsible for rendering the UI and Session management.
74-
There are **3 dependencies** needed in order to run the `graphql-playground` React component.
74+
There are **3 dependencies** needed in order to run the `graphql-playground-react` React component.
7575
1. _Open Sans_ and _Source Code Pro_ fonts
76-
2. Including `graphql-playground/playground.css`
76+
2. Including `graphql-playground-react/playground.css`
7777
3. Rendering the `<Playground />` component
7878

7979
The GraphQL Playground requires **React 16**.
@@ -87,8 +87,8 @@ Including stylesheet and the component (`2., 3.`)
8787
```js
8888
import React from 'react'
8989
import ReactDOM from 'react-dom'
90-
import Playground from 'graphql-playground'
91-
import 'graphql-playground/playground.css'
90+
import Playground from 'graphql-playground-react'
91+
import 'graphql-playground-react/playground.css'
9292

9393
ReactDOM.render(<Playground endpoint="https://api.graph.cool/simple/v1/swapi" />, document.body)
9494
```

0 commit comments

Comments
 (0)