Photo by Peter Olexa on Unsplash

React useEffect: 4 Tips Every Developer Should Know

Let’s talk about useEffects in React Hooks! I’m going to share with you 4 tips you should have in mind when using useEffect. Use a useEffect for a single purpose In React Hooks, you can have multiple useEffect functions. This is a great feature because, if we analyze how to write clean code, you’ll see that functions should serve a single purpose (much like how a sentence should communicate one idea only)....

August 9, 2020 · 6 min · Helder Esteves