How To Build A Text Editor With Lexical and React

Konstantin Münster
12 min readJan 14

Lexical is a new framework for building rich text editors. Let’s build a simple WYSIWYG editor with it.

WYSIWYG editor with Lexical and React
Lexical integrates perfectly with React to build complex editor experiences.

In April 2022, Meta open-sourced Lexical — “an extensible text editor framework”.

Given that it powers some of the most popular web apps in the world, it especially focuses on accessibility and performance. Among other things, by its native support…