Showing 10 of 97 questions
Explain the difference between useState and useEffect in React. When would you use each?
What is the Virtual DOM and how does React use it to optimize performance?
Explain the concept of prop drilling in React and how you would solve it.
What are React Hooks and why were they introduced? Name at least 5 built-in hooks.
What is the difference between useMemo and useCallback? When should you use each?
Explain the component lifecycle in React. How has it changed with hooks?
What is React Context and when should you use it? What are its limitations?
What is React.memo and how does it help with performance? How is it different from useMemo?
Explain the difference between controlled and uncontrolled components in React forms.
What is the useReducer hook and when would you use it instead of useState?