File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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
7373GraphQL 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.
75751 . _ Open Sans_ and _ Source Code Pro_ fonts
76- 2 . Including ` graphql-playground/playground.css `
76+ 2 . Including ` graphql-playground-react /playground.css `
77773 . Rendering the ` <Playground /> ` component
7878
7979The GraphQL Playground requires ** React 16** .
@@ -87,8 +87,8 @@ Including stylesheet and the component (`2., 3.`)
8787``` js
8888import React from ' react'
8989import 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
9393ReactDOM .render (< Playground endpoint= " https://api.graph.cool/simple/v1/swapi" / > , document .body )
9494```
You can’t perform that action at this time.
0 commit comments