amat-react

Amat React renders Prose Mirror JSON Documents as HTML

Usage no npm install needed!

<script type="module">
  import amatReact from 'https://cdn.skypack.dev/amat-react';
</script>

README

@apmg/amat

This component is able to take in a ProseMirror endpoint and compose the correct HTML from it, exporting it as a React component named <Body />.

See the example in Body.test.js to learn how to override a component with a custom component.