Published
Edited
Jan 16, 2021
3 stars
Also listed in…
API
Insert cell
Insert cell
Insert cell
Insert cell
{
let out = html`<div></div>`
m.render(out, "hello Mithril")
return out
}
Insert cell
{
let out = html`<div></div>`;
m.render(out, [
m("main", [
m("h1", {class: "title"}, "My first app"),
m("button", "A button"),
])
])
return out
}
Insert cell
Hello = {
let out = html`<div></div>`
var Hello = {
view: function() {
return m("main", [
m("h1", {class: "title"}, "My first app - from a component"),
m("button", "A button"),
])
}
}
m.mount(aPlace, Hello ) // why you no work?
}
Insert cell
aPlace = html`<div></div>`
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more