React Developer Interview Questions

3,481 react developer interview questions shared by candidates

1) What is useMemo in React? 2) What is useContext in React JS? 3) When does component Re-render? 4) What is the use of useCallback hook? 5) for(var i=0;i<5;i++){ setTimeout(()=>{ console.log()i; }); } What is the output of the above code? What changes do I need to make to get '0 1 2 3 4' as output. 6) Tell me about any challenge you came across while building a project and how did you solve it?
avatar

React Developer

Interviewed at RioMed

2.7
Jun 26, 2023

1) What is useMemo in React? 2) What is useContext in React JS? 3) When does component Re-render? 4) What is the use of useCallback hook? 5) for(var i=0;i<5;i++){ setTimeout(()=>{ console.log()i; }); } What is the output of the above code? What changes do I need to make to get '0 1 2 3 4' as output. 6) Tell me about any challenge you came across while building a project and how did you solve it?

Viewing 1361 - 1370 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 3,481 interview questions and reports from React developer interviews. Prepare for your interview. Get hired. Love your job.