React Interview Questions - Coding Interview 2024
Introduction
Pros and Cons of React
(02:16)
How to create React application?
(01:52)
Pdf file
(00:50)
I prepared source code for you
(00:19)
Basic Knowledge
What is virtual DOM?
(03:03)
What is JSX?
(01:27)
Why do we use className and not class?
(01:07)
What are functional components and props?
(03:31)
What are class components, props and state?
(05:13)
What are dumb vs smart components?
(01:34)
What is a key index map?
(03:27)
What is React.Fragment?
(03:38)
What is conditional rendering in React?
(04:50)
How to apply styles in React?
(06:21)
How parent child communication is working in React?
(04:33)
Advanced Knowledge
What is useState hook?
(10:44)
What is useEffect hook?
(11:18)
What is useReducer hook?
(10:47)
What is useContext hook?
(07:39)
What is useRef hook?
(05:01)
What is useMemo hook?
(08:24)
What is useCallback hook?
(07:54)
Write React custom hook useFetch
(12:57)
Write React custom hook useLocalStorage
(06:05)
React.memo - rendering optimisation in React
(06:47)
What is the best React file structure?
(06:16)
How does React router work?
(13:30)
What is React portals?
(08:00)
What is React lazy and React suspense?
(05:14)
How does Typescript work in React?
(09:24)
What are high order components? (HOC)
(08:53)
Write an example of form inside React
(04:32)
Why does strict mode renders twice in React?
(02:24)
Do I need to rewrite all my class components with hooks?
(02:59)
Can you force a component to re-render without calling setState?
(05:09)
What is React fiber?
(01:06)
What is server side rendering in React?
(06:37)
State management
React Query
(11:21)
How Redux works in plain Javascript?
(11:16)
How does Redux work together with React?
(13:04)
How does Redux toolkit work?
(07:47)
Homework
Homework
(00:53)
What are functional components and props?
Download
sourceCode.zip