()
| 13 | * https://github.com/uiwjs/react-codemirror/issues/674 |
| 14 | */ |
| 15 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…