@mavix
React Tip #2: Don't duplicate your data in state.
When selecting an item from a list, store the ID, not the entire object.
❌ useState(user): Risks stale data if the list updates
✅ useState(id): Always pulls the fresh object from the source list
Keep a single source of truth.