MCPcopy Create free account
hub / github.com/FormidableLabs/react-live / DemoLiveEditor

Function DemoLiveEditor

website/src/components/live-edit.tsx:9–19  ·  view source on GitHub ↗
({ noInline = false, code }: Props)

Source from the content-addressed store, hash-verified

7};
8
9export const DemoLiveEditor = ({ noInline = false, code }: Props) => {
10 return (
11 <LiveProvider code={code} noInline={noInline}>
12 <div className="grid lg:grid-cols-2 gap-4 mb-6">
13 <LiveEditor className="font-mono" />
14 <LivePreview />
15 </div>
16 <LiveError className="text-red-800 bg-red-100 mt-2" />
17 </LiveProvider>
18 );
19};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected