draft-go
Grab and go draft.js editor
Install
npm install --save draft-go
Usage
;; { superprops; this this; thispreview = thispreview; thisstate = previewHtml: '' ; } { const editorState = thisstate; const contentState = editorState; const html = ; this; } { const previewHtml = thisstate; return <div as="main" role="main"> <button onClick=thispreview>Preview</button> <GoEditor onChange= this /> <div style= marginTop: '2rem' dangerouslySetInnerHTML= __html: previewHtml /> </div> }