React
@monaco-editor/react
Monaco Editor for React - use the monaco-editor in any React application without needing to use webpack (or rollup/parcel/etc) configuration files / plugins
Rich Text
monaco
editor
react
vscode
code
text
@monaco-editor/react
Rich Text
javascript
npm
Stars
4.7k
Weekly
5.9M
Open issues
22
Bundle
~15 kB
Installation
npm install @monaco-editor/reactCode example
import { React } from "@monaco-editor/react";
export function Example() {
return (
<div>
<h2>React</h2>
<React />
</div>
);
}Pros & cons
Pros
- Actively maintained by Suren Atoyan
- 5.9M weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~15 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 22 open issues on GitHub