Published
Edited
Nov 23, 2018
1 fork
Importers
Insert cell
Insert cell
mutable todos = ["Initial Todo"]
Insert cell
todolist = ["ul", todos.map(todo => ["li", todo])]
Insert cell
hiccup([
"div",
[
"button",
{
onclick: () =>
(mutable todos = (todos.push(`Item ${todos.length + 1}`), todos))
},
"new todo"
],
todolist
])
Insert cell
Insert cell
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