MCPcopy Create free account
hub / github.com/uiwjs/react-codemirror / Component

Function Component

www/src/pages/examples/Example674.tsx:15–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

13 * https://github.com/uiwjs/react-codemirror/issues/674
14 */
15export function Component() {
16 const [value, setValue] = useState(code);
17
18 const onChange = useCallback((val: string) => {
19 setValue(val);
20 }, []);
21
22 return (
23 <Fragment>
24 <CodeMirror
25 value={value}
26 theme="none"
27 height="400px !important"
28 width="100%"
29 onChange={onChange}
30 style={{ margin: '0 0 23px 0', flex: 1 }}
31 extensions={[EditorView.contentAttributes.of({ spellcheck: 'true' })]}
32 />
33 </Fragment>
34 );
35}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…