React Interview Preparation – Complete Guide for
Interns & Freshers
1. What is React?
React is a JavaScript library for building user interfaces. It allows developers to create
reusable UI components.
2. What are components in React?
Components are independent, reusable pieces of UI in React. They can be either
functional or class-based.
3. What is JSX?
JSX stands for JavaScript XML. It allows writing HTML-like syntax directly in JavaScript
files.
4. What is Virtual DOM?
Virtual DOM is a lightweight copy of the real DOM. React uses it to efficiently update only
changed parts of the UI.
5. What are props in React?
Props are short for properties. They are used to pass data from parent to child
components.