React statebeginner
State is the data that changes while the page is open; useState is how a component remembers something between renders.
Sort, filter and paginate a table — without re-sorting a thousand rows on every keystroke.
Published in full, before you start — every point is one of these and there is nothing else.
State is the data that changes while the page is open; useState is how a component remembers something between renders.
Re-sorting a thousand rows on every keystroke is why a table feels slow; useMemo tells React to only redo that work when the inputs actually change.
No endpoint should return an unbounded list; Skip/Take plus a total count is how the caller knows what page they are on and how many there are.
Anything that talks to a network can be slow or fail; a screen with no loading state and no error state is a screen that looks broken the first time the wifi drops.
Every input needs a label and every interactive thing needs to work from the keyboard — this is the difference between a demo and something a real person can use.