0.1.0 • Published 1 year ago

react-mobiledoc-renderer v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Mobiledoc Renderer for React

License NPM Version NPM Downloads

Warning This is pre-production code and still under active development. Use at your own risk.

Table of Contents

Installation

Install the module using npm install:

npm install react-mobiledoc-renderer

Usage

To use the module, simply import it into your code and use as follows:

import Renderer from 'react-mobiledoc-renderer';

const renderer = new Renderer({
  // ...see below for options
});

const mobiledoc = {
  // mobiledoc document object
};

// note that the .render() method is async
const { result } = await renderer.render(mobiledoc);

// the `result` is a React element
return <article>{result}</article>;
0.1.0

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago