Created
March 7, 2017 19:37
-
-
Save gilbert/4520990643e00ff91df53505e4fe2e37 to your computer and use it in GitHub Desktop.
Minimal Mithril 1.0 boilerplate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html><title>Minimal Mithril</title> | |
<div id="app"></div> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/mithril/1.0.1/mithril.min.js"></script> | |
<script> | |
var AppComponent = { | |
view: function (vnode) { | |
return m('h1', "Hello World!") | |
} | |
} | |
m.mount(document.getElementById('app'), AppComponent) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment