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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.100latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.100
1.1.90
1.1.80
1.1.70
1.1.60
1.1.50
1.1.40
1.1.21
1.1.30
1.1.10
1.1.00

Package Sidebar

Install

npm i mithril-render

Weekly Downloads

1

Version

1.1.10

License

MIT

Unpacked Size

20.2 kB

Total Files

6

Last publish

Collaborators

  • tlaziuk