UNPKG

kolenkainc-honohub-graphql

Version:

GraphQL middleware for honohub

2 lines (1 loc) 311 B
import{jsx as r}from"react/jsx-runtime";import{createGraphiQLFetcher as t}from"@graphiql/toolkit";import i from"graphiql";import"graphiql/graphiql.min.css";import{useMemo as o}from"react";function n(n){var p=o((function(){return t({url:n.endpoint})}),[n.endpoint]);return r(i,{fetcher:p})}export{n as default};