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

Function setRefCanvas

packages/grapesjs-react/src/context/EditorOptions.tsx:31–33  ·  view source on GitHub ↗
(refCanvas)

Source from the content-addressed store, hash-verified

29export const EditorOptionsProvider = ({ children }: { children?: ReactNode }) => {
30 const [state, setState] = useState<EditorOptionsState>(() => ({
31 setRefCanvas(refCanvas) {
32 setState(state => ({ ...state, refCanvas }));
33 },
34 setCustomModal(customModal) {
35 setState(state => ({ ...state, customModal }));
36 },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected