Go Career
Explore
Pricing
Resources
Login
Get Started
Interview Prep
Back to React
Hooks & Patterns
15 questions
Questions
1
Question 1
2
Question 2
3
Question 3
4
Question 4
5
Question 5
6
Question 6
7
Question 7
8
Question 8
9
Question 9
10
Question 10
Multi
11
Question 11
12
Question 12
13
Question 13
14
Question 14
15
Question 15
Toggle Sidebar
Back to Hooks & Patterns
Question 4
/
15
intermediate
Select one answer
When does useEffect run with an empty dependencies array []?
On every render
Only once after the initial render (like componentDidMount)
Never
Only when props change
Show hint
Check Answer
Previous
Back to Hooks & Patterns
Next