How to fix missing dependency warning when using useEffect React Hook
If you aren’t using fetchBusinesses method anywhere apart from the effect, you could simply move it into the effect and avoid the warning If however you are using fetchBusinesses outside of render, you must note two things Is there any issue with you not passing fetchBusinesses as a method when it’s used during mount with its enclosing closure? Does … Read more