mithril-render
TypeScript icon, indicating that this package has built-in type declarations

1.1.10 • Public • Published

mithril-render

Build Status Coverage Status dependencies Status devDependencies Status peerDependencies Status npm version downloads license

this is a TypeScript fork of Stephan Hoyer's mithril-node-render

Installation

npm install mithril-render

Usage

import * as browserMock from "mithril/test-utils/browserMock";
 
// use a mock DOM so we can run mithril on the server
browserMock(global);
 
import render from "mithril-render";
 
import * as m from "mithril";
 
render(m('span', 'huhu')).then((html) => {
    console.log(html);
});

See also

Package Sidebar

Install

npm i mithril-render

Weekly Downloads

0

Version

1.1.10

License

MIT

Unpacked Size

20.2 kB

Total Files

6

Last publish

Collaborators

  • tlaziuk