web-dev-projects
web-dev-projects copied to clipboard
how do i fix this? can you help me please
WARNING in [eslint] src\components\Banner.js Line 22:8: React Hook useEffect has missing dependencies: 'delta' and 'tick'. Either include them or remove the dependency array react-hooks/exhaustive-deps
webpack compiled with 1 warning
please delete your react dependency in your package.json file and re install your react with proper verion
Use ESLint comment to ignore specific line // eslint-disable-next-line react-hooks/exhaustive-deps
1st way is to Include missing dependencies: useEffect(() => { // Your code }, [delta, tick]);
2nd way is to disable the lint rule useEffect(() => { // Your code // eslint-disable-next-line react-hooks/exhaustive-deps }, []);