Skip to content

Instantly share code, notes, and snippets.

View alinnert's full-sized avatar
Learning Java

Andreas Linnert alinnert

Learning Java
View GitHub Profile
@alinnert
alinnert / CodeMirror.tsx
Last active June 28, 2021 05:49
CodeMirror 6 React Component
import { FC } from 'react'
import { useCodeMirror } from './useCodeMirror'
interface Props {
content: string
classNames?: string
onContentChange: (content: string) => void
}
export const CodeMirror: FC<Props> = ({