Appendix 1. Most Common React Interview Questions
I would like to end this book by giving you some of the most common questions of React and JavaScript in job interviews:
- React questions:
- What is React? How is it different from other JS libraries/frameworks?
- What happens during the lifecycle of a React component?
- What can you tell me about JSX?
- What's the difference between Real DOM and Virtual DOM?
- What are the limitations of React?
- Explain the purpose of
render()
in React - What is a state in React and how is it used?
- What's the difference between states and props?
- What's an arrow function in React? How is it used?
- What's the difference between a Class component and a Functional Component?
- What's the difference between a stateless component and a pure component?
- Explain the lifecycle methods of React components in detail.
- What are Higher Order Components (HOC)?
- What is Redux?
- How is Flux different from Redux?
- What are refs used for in React?
- What is the difference between action and reducer in Redux?
- How can you improve the performance of a React Application?
- JavaScript questions:
- What is the difference between a callback and a promise?
- What is hoisting?
- What is the difference between apply and call?
- What is a closure and how/why would you use it?
- How does event delegation work?
- What's the difference between bubbling and capturing?
- What does
bind()
do? - What's the difference between a variable that is null, undefined, or undeclared?
- What's the difference between
==
and===
? - What is "lexical" scoping?
- What is functional programming?
- What is the difference between classical inheritance and prototypal inheritance?