My favourite thing!
summary
A short lightning demo builds a list component with search and sort and shows how common approaches break: 97–98% fail by mutating either the original array or the currently filtered array and end up with wrong results when queries or sorts change. The usable solution is to store search query and sorting in state and to derive the displayed list from that state on every update, which keeps search and sort composable and predictable.
AI-written summary · about
related talks
07mDrag & drop (libraries)
46mUsing Reactjs to solve our daily problems
30mJavaScript Generators — Practical Use Cases
45mYou need to know Algorithms and Data Structures in Front-end anyway
29mThe Immutable Way: A Guide to Cleaner, More Predictable JavaScript
36mVue 3 | Looking into the Vueture: Composition Functions
09mLightning Talk: Redux Principles in Plain JavaScript
26mStay Reactive with MobX
