UNPKG

kolenkainc-honohub-graphql

Version:

GraphQL middleware for honohub

2 lines (1 loc) 311 B
"use strict";var r=require("react/jsx-runtime"),e=require("@graphiql/toolkit"),i=require("graphiql");require("graphiql/graphiql.min.css");var t=require("react");module.exports=function(u){var n=t.useMemo((function(){return e.createGraphiQLFetcher({url:u.endpoint})}),[u.endpoint]);return r.jsx(i,{fetcher:n})};