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

0.8.0 • Public • Published

Meiosis-Render

Meiosis-Render is a helper library for writing Meiosis renderers.

If you write a function for your renderer with the following signature:

function intoElement(element) {
  return function(model, rootComponent) {
    // render the view using model and/or rootComponent
  };
}

You can then pass your function to meiosisRender:

function renderer() {
  return meiosisRender(intoElement);
}

This will give you a renderer with the following convenience functions:

renderer.intoElement(document, element)
renderer.intoId(document, id)
renderer.intoSelector(document, selector)

The following renderers use Meiosis-Render:

You will find examples of their use in the meiosis-examples repository.

--

Meiosis is developed by foxdonut (@foxdonut00) and is released under the MIT license.

Package Sidebar

Install

npm i meiosis-render

Weekly Downloads

6

Version

0.8.0

License

MIT

Last publish

Collaborators

  • foxdonut