Closed ybiquitous closed 2 years ago
@monaco-editor/react
supports React 18, so there are no problems like #304.
$ npm v @monaco-editor/react peerDependencies
{
'monaco-editor': '>= 0.25.0 < 1',
react: '^16.8.0 || ^17.0.0 || ^18.0.0',
'react-dom': '^16.8.0 || ^17.0.0 || ^18.0.0'
}
None.
This pull request migrates
react-simple-code-editor
to@monaco-editor/react
.Monaco Editor powers VS Code and is one of the most popular editors. Prism.js is no longer necessary.
Also, this change supports displaying
endLine
andendColumn
.Demo
https://user-images.githubusercontent.com/473530/165935385-b7621b0c-fb60-4969-8758-5efcea824c1d.mov