Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how do i fix this? can you help me please #41

Open
babyakk23 opened this issue Nov 14, 2023 · 3 comments
Open

how do i fix this? can you help me please #41

babyakk23 opened this issue Nov 14, 2023 · 3 comments

Comments

@babyakk23
Copy link

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

@nmitydv
Copy link

nmitydv commented Nov 21, 2023

please delete your react dependency in your package.json file and re install your react with proper verion

@Swekshas08
Copy link

Use ESLint comment to ignore specific line
// eslint-disable-next-line react-hooks/exhaustive-deps

@whybhanu
Copy link

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
}, []);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants