links: Reactive Programming MOC
Legend State
- As easy as possible
- Be the fastest kid
Reactivity
Why swap and replace are faster
When you swap an element, usually state management libraries expects to pass new copy of array with swapped items, instead of mutating it, When array is changed React has to render all of it’s items
With legend when you swap an item it just replaces the node with updated values, so your array reference is still same.
tags: reactivity