0% found this document useful (0 votes)
84 views

React JS Interview Questions

This document lists 50 interview questions related to React JS. It begins with basic questions about what React is, how to create components, and lifecycle methods. It then covers more advanced topics like PureComponents, context, lifting state, reconciliation, and higher-order components. The document provides an extensive list of questions that could be asked in a React interview.

Uploaded by

SHAIK BAJI
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
84 views

React JS Interview Questions

This document lists 50 interview questions related to React JS. It begins with basic questions about what React is, how to create components, and lifecycle methods. It then covers more advanced topics like PureComponents, context, lifting state, reconciliation, and higher-order components. The document provides an extensive list of questions that could be asked in a React interview.

Uploaded by

SHAIK BAJI
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

REACT JS

Interview Questions

Gaurav Pandey
1.What is React?
2.How to create components in React?
3.What are the lifecycle methods of React?
4.What are Pure Components?
5.What will happen if you use setState() in constructor?
6.How to reset state in Redux?
7.How do you use contextType?
8.How to create react class components without ES6?
9.How to import and export components using React
and ES6?
10. How to set initial state in Redux?
11. What are the benefits of new JSX transform?
12. What is an action in Redux?
13. What is diffing algorithm?
14. What are the benefits of new JSX transform?
15. What are the problems of using render props with
pure components?

Gaurav Pandey
16. Does React support all HTML attributes?
17. Can we use web components in react application?
18. What are loadable components?
19. How do you solve performance corner cases while
using context?
20. What is windowing technique?
21. What is Lifting State Up in React?
22. What is suspense component?
23. Why do you need additional care for component
libraries while using forward refs?
24. What is reconciliation?
25. How to write comments in React?
26. What is children prop?
27. How to listen to state changes?
28. What are Higher-Order Components?

Gaurav Pandey
29. What are controlled components?
30. How to re-render the view when the browser is
resized?
31. How to focus an input element on page load?
32. What is the difference between setState() and
replaceState() methods?
33. Is it possible to use React without rendering HTML?
34. Why you can’t update props in React?
35. What are the possible ways of updating objects in
state?
36. How can we find the version of React at runtime in
the browser?
37. What is state mutation and how to prevent it?
38. How to avoid using relative path imports in
create-react-app?
39. What is NextJS and major features of it?
40. How to update a component every second?
41. Why is a component constructor called only once?
42. What are the common folder structures for React?

Gaurav Pandey
43. What are the popular package for animations?
44. Describe about data flow in react?
45. How to prevent a function from being called multiple
times?
46. What is Typescript?
47. What are the benefits of using typescript with
reactjs?
48. What is formik?
49. Do browsers understand JSX code?
50. What are the sources used for introducing hooks?

Gaurav Pandey

You might also like