MCPcopy Create free account
hub / github.com/GrapesJS/react / WithEditor

Function WithEditor

packages/grapesjs-react/src/WithEditor.tsx:7–11  ·  view source on GitHub ↗
({ children }: PropsWithChildren)

Source from the content-addressed store, hash-verified

5 * Load children once the editor is available
6 */
7const WithEditor = ({ children }: PropsWithChildren) => {
8 const editor = useEditorMaybe();
9
10 return editor ? <>{children}</> : <></>;
11};
12
13export default WithEditor;

Callers

nothing calls this directly

Calls 1

useEditorMaybeFunction · 0.85

Tested by

no test coverage detected