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

Function onExampleChange

packages/grapesjs-react-app-19/src/App.tsx:44–48  ·  view source on GitHub ↗
(ev: React.ChangeEvent<HTMLSelectElement>)

Source from the content-addressed store, hash-verified

42 );
43
44 const onExampleChange = (ev: React.ChangeEvent<HTMLSelectElement>) => {
45 setSelectedExample(ev.target.value as Examples);
46 setEditor(undefined);
47 setReady(undefined);
48 };
49
50 let EditorToRender = DefaultEditor;
51

Callers

nothing calls this directly

Calls 1

setReadyFunction · 0.85

Tested by

no test coverage detected