Following dependency array rules lead to better design of code We all know this pattern in creating functional components when you want to have your functions run only on component mount: useEffect(() => {
functionToRunOnlyOnMount()
}, []) It is prescribed by many and better yet, working. Problem start, when you run linting on your code and see this warning: warning…