Pick an example to open it full screen, with the live preview and its source side by side.
A builder takes attributes, static children and dynamic text. Rename changes the state, then calls update().
update()
Hello, Ada
import 'nuclo' let name = 'Ada' export const Card = () => div( { className: 'card' }, h2('Profile'), p(() => `Hello, ${name}`), button('Rename', { onClick: () => { name = name === 'Ada' ? 'Grace' : 'Ada' update() }, }), )