AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
React Component Lifecycles Are Part of the Programming Model
React component lifecycles are part of the programming model. You start wiring up effects to detect when, it's like the modally shown. When the ID changes, you run this code. So I'm wondering if like, just it's a sign your code is wrong. Well, we like when it when hooks were introduced, that's like they kind of tackle that classic bug where you do work and component did mount. And all of a sudden now your component can get an ID that changes.