Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Mithril + Mobx Hello World
<div class="container" id="main">
<div class="row">
<div class="col-xs-12 col-md-6">
<div id="app"></div>
/** @jsx m */
const store = mobx.observable({
userName: "Ramnath"
const Hello = {
view(ctrl, props){
return (
<h2>Hello {}</h2>
mobx.autorun(() =>
<Hello store={store} />
<script src="//"></script>
<script src="//"></script>
<link href="" rel="stylesheet" />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.