Question · JavaScript and React course · Module 5: useEffect and Custom Hooks
useEffect Hook Dependencies
What should be in the useEffect dependency array?
Answer options
- It does not matter
- Only props
- Only state
- All values used inside the effect
You can check the correct answer by solving this task in the CodeWorlds game.