Published
Edited
Aug 29, 2018
Importers
1 star
Insert cell
Insert cell
e(app, { name: "Grant" })
Insert cell
app = props => {
return html`
<div style="font-weight: bold">APP</div>
<div>${e(greeter, props)}</div>
<div>${e(timer, {})}
`;
}
Insert cell
greeter = props => {
return html`Hello ${props.name}!`;
}
Insert cell
timer = props => {
return html`It is ${now.toLocaleString()}`;
}
Insert cell
Insert cell
Insert cell
function e(component, props) {
return component(props);
}
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