0.8.0 • Published 8 years ago
meiosis-mithril v0.8.0
Meiosis-Mithril
Meiosis-Mithril is a Meiosis renderer for Mithril.
You can install it with npm
:
npm i --save meiosis-mithril
Then use it along with Meiosis:
import { createComponent, run } from "meiosis";
import { renderer } from "meiosis-mithril";
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 meiosisMithril
global variable.
You will find a TodoMVC example in the meiosis-examples repository.
--
Meiosis is developed by foxdonut (@foxdonut00) and is released under the MIT license.