jaydenseric / graphql-react

A GraphQL client for React using modern context and hooks APIs that is lightweight (< 4 kB) but powerful; the first Relay and Apollo alternative with server side rendering.
https://npm.im/graphql-react
MIT License
717 stars 22 forks source link

graphql-react example script not working. #5

Closed pur3miish closed 6 years ago

pur3miish commented 6 years ago

The example script fails.

git clone https://github.com/jaydenseric/graphql-react.git && cd graphql-react/example && npm install && npm run dev

Returns:

TypeError: Object(...) is not a function

jaydenseric commented 6 years ago

That’s because master branch has unpublished changes. To try out the latest unpublished API, run npm install in the cloned directory, then in example/package.json change the graphql-react dependency to file:...

I want to make this easier soon, and deploy a live example with Zeit Now.

I have a newer API I hope to push in the next few hours, so keep that in mind 🙂