Removing unnecessary Effects will make your code easier to follow, faster to run, and less error-prone. Effects are an escape hatch from the React paradigm. They let you synchronize your components with some external system like a non-React widget, network, or the browser DOM.
14 Comments
Sort: