Interview Questions

Difficulty:EasyMediumHard

Showing 10 of 97 questions

Easy

Explain the difference between useState and useEffect in React. When would you use each?

Frontend DeveloperReactFrontend
Medium

What is the Virtual DOM and how does React use it to optimize performance?

Frontend DeveloperReactFrontend
Medium

Explain the concept of prop drilling in React and how you would solve it.

Frontend DeveloperReactFrontend
Medium

What are React Hooks and why were they introduced? Name at least 5 built-in hooks.

React DeveloperReactHooks
Medium

What is the difference between useMemo and useCallback? When should you use each?

React DeveloperReactHooks
Medium

Explain the component lifecycle in React. How has it changed with hooks?

React DeveloperReactLifecycle
Medium

What is React Context and when should you use it? What are its limitations?

React DeveloperReactState Management
Medium

What is React.memo and how does it help with performance? How is it different from useMemo?

React DeveloperReactPerformance
Easy

Explain the difference between controlled and uncontrolled components in React forms.

React DeveloperReactForms
Medium

What is the useReducer hook and when would you use it instead of useState?

React DeveloperReactHooks