100 React Interview Questions 2024
100 React Interview Questions 2024
?
React is an open-source JavaScript library developed for building user
interfaces, particularly for single-page applications.
what are the major features of
react?
Virtual DOM: React uses a virtual DOM to improve performance by
minimizing direct DOM manipulations.
JSX: JSX stands for JavaScript XML, which allows writing HTML in
React components.
Components: React is component-based, meaning the UI is built
using reusable components.
One-way Data Binding: Data flows in one direction, making the
application easier to understand and debug.
High Performance: React optimizes updates by using a virtual DOM
and efficiently re-rendering components.
Unidirectional Data Flow: Data flows in a single direction, which
provides better control over the entire application.
What is virtual DOM and how it
works ?
Virtual DOM is a lightweight, in-memory representation of the real DOM
elements generated by React components. React keeps a copy of the actual
DOM structure in memory, called the Virtual DOM, and uses it to optimize
updates and rendering.
Diffing
Rendering Updating
Algorith
m
Batch
Reconciliation Updates
What are components in react
?
Components are the building blocks of a React application. They are
reusable pieces of UI that can be nested, managed, and handled
independently.