meiosis-snabbdom

meiosis-snabbdom

Usage no npm install needed!

<script type="module">
  import meiosisSnabbdom from 'https://cdn.skypack.dev/meiosis-snabbdom';
</script>

README

Meiosis-Snabbdom

Meiosis-Snabbdom is a Meiosis renderer for Snabbdom.

You can install it with npm:

npm i --save meiosis-snabbdom

Then use it along with Meiosis:

import { createComponent, run } from "meiosis";
import { renderer } from "meiosis-snabbdom";

const Main = createComponent({...});
run({ renderer: renderer().intoId(document, "app"), rootComponent: Main });

You can also download the JavaScript file from the Meiosis builds and add it to your page with a plain <script> tag. In that case it will be available as the meiosisSnabbdom global variable.

You will find a TodoMVC example in the meiosis-examples repository.

The labeled-sliders example also uses Meiosis-Snabbdom.

--

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