import 'nuclo'
let runs = 0
export const RunCounter = () =>
div(
// A side effect on purpose, to count the runs.
// Keep real dynamic values pure.
p(() => `This dynamic value has run ${++runs} times.`),
button('update()', { onClick: () => update() }),
)