Draft.js is a framework for building rich text editors in React, powered by an immutable model and abstracting over cross-browser differences.
Draft.js makes it easy to build any type of rich text input, whether you’re just looking to support a few inline text styles or building a complex text editor for composing long-form articles.
The framework is used by Facebook itself, and is perfectly explained in this video from React.JS Conf 2016:
Some neat experiments, such as Draft-WYSIWYG, have already been built upon Draft.js.
Draft.js →
Draft-WYSIWYG Source (GitHub) →
Draft-WYSIWYG Demo →