RIP forwardRef in React 19. 🪦 Finally, ref is treated as a normal prop. ❌ No more wrapping components. ❌ No more complex typing. ✅ Just pass it down like any other prop. Simpler is always better.
- 0 replies
- 0 recasts
- 0 reactions
Day 1 learning React Native coming from Web. ⚛️ The syntax is familiar, but the primitives change. My mental model shift: <div> ➡️ <View> <span> / raw text ➡️ <Text> <button> ➡️ <Pressable> CSS ➡️ StyleSheet.create({}) It feels stricter than the web, but I like the structure.
- 0 replies
- 0 recasts
- 0 reactions
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.
- 0 replies
- 0 recasts
- 0 reactions