react-code-canvas
Version:
A browser-based canvas for rendering React components at runtime
9 lines (8 loc) • 382 B
TypeScript
import React from 'react';
import type { LiveEditorProps } from './LiveEditor';
/**
* `fallback={null}` rather than a spinner: the editor only mounts when the
* caller asks for it, the chunk is small, and a flash of loading UI inside a
* code editor is worse than a blank pane for one tick.
*/
export declare const LazyLiveEditor: (props: LiveEditorProps) => React.JSX.Element;