REACT INTERVIEW QUESTIONS & ANSWERS
Preparing for a React interview? Here are some commonly asked questions with short answers 👇
🔹 What is React?
A JavaScript library for building user interfaces, especially single-page applications.
🔹 What are components in React?
Reusable, independent pieces of UI. Two types: Functional and Class components.
🔹 What is JSX?
A syntax extension that allows writing HTML-like code inside JavaScript.
🔹 What is Virtual DOM?
A lightweight copy of the real DOM that improves performance by updating only changed elements.
🔹 What are props?
Inputs passed to components to display dynamic data.
🔹 What is state?
An object that stores dynamic data and controls component behavior.
🔹 Difference between state and props?
Props are read-only; state is mutable and managed within the component.
🔹 What are React Hooks?
Functions like useState, useEffect that let you use state and lifecycle features in functional components.
🔹 What is useEffect?
A hook used to perform side effects like API calls, subscriptions, etc.
🔹 What is key in React lists?
A unique identifier to help React track elements efficiently.
🔹 What is lifting state up?
Moving state to a common parent component to share data between components.
🔹 What is React Router?
A library for navigation in React applications.
🚀 React Interview Questions & Answers
#ReactJS #WebDevelopment #Frontend #Programming #JavaScript #TechInterview