0.1.0 • Published 2 years ago

react-mobiledoc-renderer v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago