React component that allows to use a rich editor based on Material UI and Draft-js
npm install react-mui-draft-wysiwyg> React component that allows to use a rich editor based on Material UI and Draft-js
 
https://material-ui.com/getting-started/installation/
Then install the editor:
With npm:
``bash`
npm install --save @material-ui/icons draft-js react-mui-draft-wysiwyg`
Or with yarn:bash`
yarn add @material-ui/icons draft-js react-mui-draft-wysiwyg
`jsx
import React from 'react'
import MUIEditor, { MUIEditorState } from 'react-mui-draft-wysiwyg'
function Example() {
const [editorState, setEditorState] = React.useState(MUIEditorState.createEmpty());
const onChange = (newState) => {
setEditorState(newState);
};
}
``
https://kelsier90.github.io/react-mui-draft-wysiwyg/
MIT © Kelsier90