NOTE: Use @uiw/react-codemirror instead. It's under active development and is a more robust solution. This project was created soon after CodeMirror 6 was released and no other solutions existed afaik ...