Pick an example to open it full screen, with the live preview and its source side by side.
Every update() runs every dynamic value, even when its data did not change. Other demos on this page push the count up too.
update()
This dynamic value has run 1 times.
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() }), )