How To Remove useEffect ESLint Warnings in React

without using eslint-disable-line

Bikash Paneru
Better Programming
Published in
4 min readDec 9, 2020

--

Man running on an open road.
Photo by Isaac Wendland on Unsplash.

Are you a React developer? Do you use Hooks and functional components? Do you use ESLint to ensure your code does not do anything spooky? If yes, then I am sure that you have run into the exhaustive-deps ESLint warning while using useEffect.

--

--