On React's useEffect Hook: "I try to describe the effects I write by saying...


On React's useEffect Hook:

"I try to describe the effects I write by saying “when [dependencies] change do this” to myself. If this sentence contains the words ”or” or ”and” it usually points to a problem."

Full post: https://antongunnarsson.com/react-component-code-smells/

Great post @Awnton!

#reactjs

View original on X