React Markdown editor libraries

Updated Nov 2026

React Markdown editor libraries add a writing surface to a React app that stores content as Markdown. An editor either shows the Markdown source beside a rendered preview or hides the syntax behind formatted text. These libraries let documentation tools, content dashboards, and note-taking apps keep user writing as portable plain text.

Popularity

@tiptap/react has the most monthly downloads in this comparison, at 112.3M, a count that covers all its rich text editing.

LibraryMonthly downloadsStarsLast releaseLicense
@tiptap/react
112.3M
39.1KNov 2026MIT
@monaco-editor/react
38.6M
4.8KFeb 2025MIT
@lexical/react
30.7M
24.0KOct 2026MIT
@uiw/react-codemirror
27.3M
2.3KSep 2026MIT
@mdxeditor/editor
7.7M
3.7KNov 2026MIT
@uiw/react-md-editor
4.2M
2.9KNov 2026MIT
@blocknote/react
3.8M
10.4KOct 2026MPL-2.0
@tinymce/tinymce-react
3.3M
1.1KOct 2026MIT
Downloads: npm, last thirty days. Stars and releases: GitHub. Amber: no release in over a year.

Libraries and code examples

@tiptap/react

Provides React components for Tiptap.

Downloads / mo
112.3M
Stars
39.1K
Last release
3.34.0
License
MIT

Quickstart

From README.md
$ npm install @tiptap/react @tiptap/pm @tiptap/starter-kit @tiptap/markdown
import { EditorContent, useEditor } from '@tiptap/react'
import StarterKit from '@tiptap/starter-kit'
import { Markdown } from '@tiptap/markdown'

export default function App() {
  const editor = useEditor({ extensions: [StarterKit, Markdown], content: '# Hello', contentType: 'markdown' })
  return <EditorContent editor={editor} />
}

@monaco-editor/react

Uses the Monaco editor in any React application without webpack or other bundler configuration files.

Downloads / mo
38.6M
Stars
4.8K
Last release
4.7.0
License
MIT

Quickstart

From README.md
$ npm install @monaco-editor/react
import Editor from '@monaco-editor/react'

export default function App() {
  return <Editor height="300px" defaultLanguage="markdown" defaultValue="# Hello" />
}

@lexical/react

Provides Lexical components and hooks for React applications.

Downloads / mo
30.7M
Stars
24.0K
Last release
0.53.0
License
MIT
$ npm install react react-dom lexical@0.53.0 @lexical/react@0.53.0 @lexical/rich-text@0.53.0
import { LexicalExtensionComposer } from '@lexical/react/LexicalExtensionComposer';
import { RichTextExtension } from '@lexical/rich-text';
import { defineExtension } from 'lexical';
const extension = defineExtension({ name: 'example', namespace: 'example', dependencies: [RichTextExtension] });
export default function App() {
  return <LexicalExtensionComposer extension={extension} />;
}

@lexical/react examples

From open-source projects on GitHub

@uiw/react-codemirror

Provides a CodeMirror component for React.

Downloads / mo
27.3M
Stars
2.3K
Last release
4.25.12
License
MIT

Quickstart

From README.md
$ npm install @uiw/react-codemirror @codemirror/lang-markdown
import CodeMirror from '@uiw/react-codemirror'
import { markdown } from '@codemirror/lang-markdown'

export default function App() {
  return <CodeMirror value="# Hello" extensions={[markdown()]} />
}

@uiw/react-codemirror examples

From open-source projects on GitHub

@mdxeditor/editor

Provides formatted Markdown editing with optional JSX component editors.

Downloads / mo
7.7M
Stars
3.7K
Last release
4.5.0
License
MIT

Strengths

  • Edits Markdown as formatted content. Authors edit documents naturally, with headings, tables, and images.
  • Edits embedded JSX components. Use the built-in JSX editor or supply a custom one.

Limitations

  • Requires client rendering. Render the editor and initialize its plugins only on the client.
  • External updates need a ref. Call setMarkdown to change content after the initial value.

Quickstart

From README.md
$ npm install react react-dom @mdxeditor/editor
import { MDXEditor } from '@mdxeditor/editor';
import '@mdxeditor/editor/style.css';
export default function App() {
  return <MDXEditor markdown='Hello world' />;
}

@mdxeditor/editor examples

From open-source projects on GitHub

@uiw/react-md-editor

Provides a React Markdown text editor with syntax highlighting and preview.

Downloads / mo
4.2M
Stars
2.9K
Last release
4.2.4
License
MIT

Strengths

  • Edits source beside its preview. Use the editor and Markdown preview with shared React state.
  • Supports custom toolbar commands. Supply commands to customize the editing toolbar.

Limitations

  • Untrusted content needs sanitizing. Add rehype-sanitize when Markdown authors cannot be trusted.
  • Next.js needs client rendering. Load the editor dynamically with server rendering disabled.

Quickstart

From README.md
$ npm i @uiw/react-md-editor
import React from 'react'
import MDEditor from '@uiw/react-md-editor'

export default function App() {
  const [value, setValue] = React.useState('# Hello')
  return <MDEditor value={value} onChange={setValue} />
}

@blocknote/react

Provides a Notion-style, block-based, extensible text editor built on ProseMirror and Tiptap.

Downloads / mo
3.8M
Stars
10.4K
Last release
0.57.0
License
MPL-2.0

Quickstart

From README.md
$ npm install react react-dom @blocknote/core @blocknote/react @blocknote/mantine @mantine/core @mantine/hooks @mantine/utils
import { useCreateBlockNote } from '@blocknote/react';
import { BlockNoteView } from '@blocknote/mantine';
import '@blocknote/core/fonts/inter.css';
import '@blocknote/mantine/style.css';
export default function App() {
  const editor = useCreateBlockNote();
  return <BlockNoteView editor={editor} />;
}

@blocknote/react examples

From open-source projects on GitHub

@tinymce/tinymce-react

Provides the official React component for the TinyMCE rich text editor.

Downloads / mo
3.3M
Stars
1.1K
Last release
6.3.1
License
MIT

Quickstart

From README.md
$ npm install @tinymce/tinymce-react
import { Editor } from '@tinymce/tinymce-react'

export default function App() {
  return <Editor apiKey="your-api-key" init={{ plugins: 'markdown' }} initialValue="<p>Hello</p>" />
}

FAQ

@mdxeditor/editor suits formatted Markdown editing with embedded JSX components. @uiw/react-md-editor suits source editing beside a live preview. @tiptap/react suits rich text editors built from Tiptap components.

@blocknote/react is a Notion-style, block-based, extensible text editor built on ProseMirror and Tiptap.

@mdxeditor/editor provides formatted Markdown editing with optional JSX component editors. It renders only on the client.

Only with rehype-sanitize added. Untrusted Markdown needs sanitizing before @uiw/react-md-editor renders it.

For coding agents

Found your Markdown editor library? Help your agent use it.

Connect Exa so your coding agent can find the library’s documentation, check its API, and look up implementations while you build.

Run in your terminal

claude plugin install exa@claude-plugins-official