What is React and how it is different from Angular and Vue?
What is virtual DOM and what how it differs from the real DOM ?
What is JSX? Does the browser understand it ? (Hint: The browser doesn’t
understand the JSX. The browser simply makes use of createElement method
in React to convert the JSX into plain JavaScript object and that’ how the JS
Engine understands and compile it)
Re-rendering in React how we can stop it. Hint (learn React.PureComponent,
ShouldComponentUpdate method and React.memo)
Higher Order Components in React with example
Render props
State and props with example
Explain setState method in class components and how it updates the state?
(Hint: setState takes a function which accepts the previousState and update
the current state)
React. Fragment and <> </> let you render multiple components/elements in
React
How can you pass data from child to parent component and vice versa?
useMemo vs useCallback with example
useState vs useReducer
Context API vs Redux. When to use either one
Controlled vs uncontrolled forms in React
Explain different types of hooks eg) useState, useEffect, useMemo,
useCallback, useReducer, useRef etc.
What is useEffect and how it works?
Context API
What is Redux?
Explain the Redux flow
Explain the terms in Redux like action types, reducer, store and middlewares
What is Redux Thunk and what is its use?
Can we directly update the state in Redux? (Hint: we can’ t, we always make
a copy of the state and update it)
useSelector and useDispatch (Redux hooks)
What is tree Shaking?
What is React.lazy and React.suspense?
What can we do to optimize a React application? (Hint: we can use
optimization techniques such as React.PureComponents, useMemo,
useCallback, React.Memo, tree shaking, React.lazy and React.suspense)
Can we use setState inside of render() method? (Hint: we can’t , it’ll lead the
application to infinite loop)