Rules of React’s useEffect
React’s useEffect is a powerful API with lots of capabilities, and therefore flexibility. Unfortunately, this flexibility often leads to abuse and misuse, which can greatly damage an app’s stability. The good news is that if you follow a set of rules designated to protect you during coding, your application can be secure and performant. No, we’re not talking about React’s “ Rules of Hooks ”, which includes rules such as:








