react-mentions VS Draft.js

Compare react-mentions vs Draft.js and see what are their differences.

Draft.js

A React framework for building text editors. (by facebookarchive)
Our great sponsors
  • SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
react-mentions Draft.js
2 40
2,343 22,309
2.2% -
5.9 8.2
8 days ago over 1 year ago
JavaScript JavaScript
GNU General Public License v3.0 or later MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

react-mentions

Posts with mentions or reviews of react-mentions. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-12-30.
  • Adding #Hashtags and @Mentions
    2 projects | /r/SwiftUI | 30 Dec 2022
    You could get some inspiration by looking at libraries in other languages. One is `react-mentions`. Check out its `MentionsInput` component. Extracting hashtags and "ats" is a substring problem. You could extract the hashtag or "at" string and save it to some ObservableObject in your view or ViewModel. For the networking side, you could listen to published changes to that ObservableObject and update other state variables as a result.
  • Need suggestions for Facebook-like mentions and hashtags with MUI
    5 projects | /r/reactjs | 16 Nov 2021
    React Mentions - this is the only one I've tried so far and couldn't find an intuitive way to apply MUI styling

Draft.js

Posts with mentions or reviews of Draft.js. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-12-17.

What are some alternatives?

When comparing react-mentions and Draft.js you can also consider the following projects:

react-autocomplete-input - Autocomplete input field for React

quill - Quill is a modern WYSIWYG editor built for compatibility and extensibility.

react-tag-input - A fantastically simple tagging component for your projects

slate - A completely customizable framework for building rich text editors. (Currently in beta.)

React Tag Autocomplete - ⚛️ Legacy repo for the fantastically simple tagging component for your React projects (legacy repo)

TinyMCE - The world's #1 JavaScript library for rich text editing. Available for React, Vue and Angular

react-quill - A Quill component for React.

mentions - React Mentions

Editor.js - A block-style editor with clean JSON output

react-tokeninput - Tokeninput component for React

react-draft-wysiwyg - A Wysiwyg editor build on top of ReactJS and DraftJS. https://jpuri.github.io/react-draft-wysiwyg