React Interview Questions

3,478 react interview questions shared by candidates

Create a React component that iterates through an array of images, displaying one image at a time. After a 2-second interval, the component should transition to the next image, continuing this cycle. Upon reaching the end of the image array, it should seamlessly loop back to the first image, maintaining the continuous cycle.
avatar

React Native Developer

Interviewed at Apptware

4.1
Oct 6, 2023

Create a React component that iterates through an array of images, displaying one image at a time. After a 2-second interval, the component should transition to the next image, continuing this cycle. Upon reaching the end of the image array, it should seamlessly loop back to the first image, maintaining the continuous cycle.

1. Versions of React you have worked on and features of latest React version you have worked with? 2. All the hooks that you have used. Explain when to use useCallback. 3. How to manage state in React? 4. Custom hooks. Why use it? 5. What CSS preprocessors you have worked on? 6. Redux related questions. 7. Use of effects in Saga middleware. 8. Which library have you used for testing? Some basic questions. 9. Positions in CSS 10. Grid vs Flex 11. Semantic elements 12. JS questions ---------------- var a = [] function test(b) {     a.push(b)   return b } var a = [1,2,3] var b = a b.push(4) console.log(a) ---------------- let i;  for (i = 0; i < 3; i++) {     const log = () => {     console.log(i); } setTimeout(log, 100); } ---------------------- var obj = {    a: “John”,    fun1: function () {     console.log(this)    } }  obj.fun1() ----------------- var obj = {     a: “John”,     fun1: () => {      console.log(this)     }  }  obj.fun1() -------------------- 13. Create a timer/stopwatch using react.
avatar

React Developer

Interviewed at Nagarro

3.9
Aug 16, 2024

1. Versions of React you have worked on and features of latest React version you have worked with? 2. All the hooks that you have used. Explain when to use useCallback. 3. How to manage state in React? 4. Custom hooks. Why use it? 5. What CSS preprocessors you have worked on? 6. Redux related questions. 7. Use of effects in Saga middleware. 8. Which library have you used for testing? Some basic questions. 9. Positions in CSS 10. Grid vs Flex 11. Semantic elements 12. JS questions ---------------- var a = [] function test(b) {     a.push(b)   return b } var a = [1,2,3] var b = a b.push(4) console.log(a) ---------------- let i;  for (i = 0; i < 3; i++) {     const log = () => {     console.log(i); } setTimeout(log, 100); } ---------------------- var obj = {    a: “John”,    fun1: function () {     console.log(this)    } }  obj.fun1() ----------------- var obj = {     a: “John”,     fun1: () => {      console.log(this)     }  }  obj.fun1() -------------------- 13. Create a timer/stopwatch using react.

Viewing 3211 - 3220 interview questions

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