Published
Edited
Jun 7, 2018
3 stars
Insert cell
Insert cell
Insert cell
x = mobx.observable({i: 0})
Insert cell
mobx.autorun(() => {
console.log("mobx reports change " + x.i)
})
Insert cell
Insert cell
{
setInterval(
()=>{x.i++},
1000
)
}
Insert cell
Insert cell
mobx = require('mobx@4.3.1/lib/mobx.umd.min.js')
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