diff --git a/v2/pkg/playground/files/playground.html b/v2/pkg/playground/files/playground.html index b6c78d504c..4514667713 100644 --- a/v2/pkg/playground/files/playground.html +++ b/v2/pkg/playground/files/playground.html @@ -1,5 +1,5 @@ - - GraphiQL + + + + GraphiQL 5 with React 19 and GraphiQL Explorer - - - - - - - - - + #graphiql { + height: 100dvh; + } + .loading { + height: 100%; + display: flex; + align-items: center; + justify-content: center; + font-size: 4rem; + } + + - + + + - - + }); + const plugins = [HISTORY_PLUGIN, explorerPlugin()]; + + function App() { + return React.createElement(GraphiQL, { + fetcher, + plugins, + defaultEditorToolsVisibility: true, + }); + } + + const container = document.getElementById('graphiql'); + const root = ReactDOM.createRoot(container); + root.render(React.createElement(App)); + + + +
+
Loading…
+
+ + \ No newline at end of file