React Interview - 2
React Interview - 2
B. JSX
1. What is JSX. Explain Its Advantages and Disadvantages.
2. Why can’t Browsers Read JSX??
3. Why React uses className over class Attribute??
C. Components
1. What is Component. Explain the types of Components.
2. What is the Difference between Class Component and Functional
Component??
3. What are Pure Components??
4. When to use Class Components over Functional Components??
5. Explain the purpose of the render() method in React??
6. What is meant by Higher Order Component with an Example??
7. What is the Difference between Controlled and Uncontrolled
Components??
8. What is meant by Stateful and Stateless Components??
9. Can we use arrow functions in Class Components??
10. What is the Difference between Pure Component and Higher Order
Component??
11. What is Reconciliation??
12. What is React Mixins??
E. React Hooks
1. What is meant by Hook. Explain in Detail about React Hooks. Tell Use
Cases for all Hooks??
2. What is the Difference between useMemo() and React.memo()??
3. What is the Difference between useMemo() and use callback()??
4. What is the Difference between useEffect() and useLayoutEffect()??
5. What is the purpose of callback function as an argument of state()??
6. Why should we not update the state directly??
7. Why do we need to pass a function to setState()??
8. What is the use of Refs??
9. How to create Custom Hooks in React??
10. Is it good to use useState() in componentWillMount() method??
11. Can you force a component to re-render without calling setState()??
F. Redux
1. What is Redux. Where and When to Use It??
2. Explain in detail about Redux Life Cycle Methods??
3. How to make AJAX ask for in Redux??
F. React Router
1. What is React Router and Its Uses??
Miscellaneous Questions
1. Name a few techniques to optimize React app performance??
2. What is Webpack in React??
3. What is Lazy loading in React??
4. What is Code Splitting in React??
5. What are Fragments in React??
6. What is Babel in JavaScript??