editor-js-react-parser
v1.0.1
Published
Standalone parser for Editor.js clean data for React components
Downloads
288
Maintainers
Readme
React parser for Editor.js
React parser for EditorJS. It reads an object of blocks and returns HTML.
import CleanDataParser from 'react-editor-js-parser'
const HelloWorld = (html) => {
return (
<div>
{html.blocks.map((block, idx) => CleanDataParser(block, idx))}
</div>
)
}
TODO
- Add unit tests
- Finish Typescritp typings
- Add support to more block elemenets