Pages

Wednesday, April 19, 2023

React simple rich text editor using draft-js

This React Simple Rich Text Editor is created using the Draft.js library and includes button controls made with react-icons. It allows users to toggle between different inline styles like block, italic, and underline, as well as block types such as header-one, unordered-list-item, and ordered-list-item. The controls buttons are selected on text click, making it easy for users to format their text. 

The component requires two packages to be installed

yarn add draft-js react-icons