Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 581 Bytes

storybook.md

File metadata and controls

26 lines (17 loc) · 581 Bytes

I. Install StoryBook

npm run storybook
open http://localhost:9001/ in browser

II. Basic react component using apollo client

npm i graphql graphql-tag apollo-link-rest apollo-client apollo-link-http apollo-cache-inmemory
add react-json-view
add rest-basic.js component
add story

III. react-apollo

npm i react-apollo fetch-headers
add rest-component.js
add story

IV. react-with-params

add rest-component.js
add story

V. codesandbox

see https://codesandbox.io/s/github/apollographql/apollo-link-rest/tree/master/examples/advanced