loading code fetching the highlighted snippet
The box loops x and rotate. Its onUpdate prop receives every latest value once per frame, and the readout prints them as they change.
onUpdate runs once per frame while any value changes, never more.latest holds every value on the element, not only the one that changed.onUpdate keeps the element's transforms on the main thread instead
of the compositor.