I just finished a project in react. But the only error that I couldn't solve was the function below:
useEffect(() => {
if (guessedLetters.length
=== uniqueLetters.length){
startGame({
score: score + points
})
}
}, [guessedLetters.length])
Error: React Hook useEffect has missing dependencies: 'points', 'score', 'startGame', and 'uniqueLetters.length'. Either include them or remove the dependency array react-hooks/exhaustive-deps
What would be the best way to solve this problem?