Question · JavaScript and React course · Module 5: useEffect and Custom Hooks
Dependency Array in useEffect
What does the dependency array in useEffect contain?
Answer options
- Values whose changes trigger re-execution of the effect
- A list of child components to be rendered
- Names of functions to be called after rendering
- A list of props the component receives from its parent
You can check the correct answer by solving this task in the CodeWorlds game.