AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Is There a Trade-Off Between Hooks and Hooks in React?
The mistakes that people make are at least partially a product of the APIs that they're using. The new React docs do a much better job of actually laying out when and why you would use it. People have reached for it in a lot of things like data-fetching, because it was just the nature of how else were you going to perform a fetch? I needed an equivalent to component did mount. But what's nice is, again, we're moving into a world where it's going to be very rare for me to actually use a use-effect.