deep state

Add these up: 1 + 2 + 3 + 4 =

Notes:

This example only demonstrates that mutating an array also triggers rendering based on a change to state.

See the $derived state page for how we update the total.