Posts with #reacthooks

#reacthooks

Public posts on X that use #reacthooks.

Related hashtags

  1. Ansh Kumar@editansh58
    Today I learned React hooks 🪝 Built a counter with useState: jsx const [counter, setCounter] = useState(0) ❌ counter = counter + 1 ✅ setCounter(counter + 1) State changes → React re-renders → UI updates. #React #ReactHooks #LearningInPublic
    Download
    00010
  2. Thomas Chia@th__chia
    I’ve seen a lot of confusion about handlers referenced in useEffect accessing stale state from useState. Here are 3 ways to make it work: #reacthooks
    Download
    41054
  3. Show more posts