How to use @grafoo/react - 1 common examples

To help you get started, we’ve selected a few @grafoo/react examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github grafoojs / grafoo / examples / react / src / client.js View on Github external
import createGrafooConsumer from "@grafoo/react";
import createClient from "@grafoo/core";

const client = createClient("https://api.graph.cool/simple/v1/cj28ccc28umr50115gjodwzix");

if (process.env.NODE_ENV !== "production") window.client = client;

const Consumer = createGrafooConsumer(client);

export default Consumer;

@grafoo/react

grafoo client react bindings

MIT
Latest version published 2 years ago

Package Health Score

45 / 100
Full package analysis

Popular @grafoo/react functions