This is in a Rough state and should not be used. I am building and learning as I go with this project.
npm install --save drafti
import React, {useState} from 'react';
import {EditorState} from 'draft-js';
import {Drafti} from 'drafti'
const Example = props => {
// Set up your editorState
const [editorState, setEditorState] = React.useState(
EditorState.createEmpty()
);
return (
<Drafti editorState={editorState}
setEditorState={setEditorState} />
)
}
MIT © nova4005