RE

React

@lexical/react

This package provides Lexical components and hooks for React applications.

Rich Text
react
lexical
editor
rich-text
@lexical/react
Rich Text
javascript
npm
frontend
open source
Stars
540
Weekly
3.2M
Open issues
7
Bundle
~25 kB

Installation

npm install @lexical/react

Code example

import { React } from "@lexical/react";

export function Example() {
  return (
    <div>
      <h2>React</h2>
      <React />
    </div>
  );
}

Pros & cons

Pros

  • Actively maintained by fantactuka
  • 3.2M weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~25 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 7 open issues on GitHub

FAQs

Alternatives & similar libraries