React
React
COM
Part 01
MOST ASKED
REACT JS QUESTIONS
INTERVIEW
Burhan Tahir
@iamshekhobaba
1. WHAT IS REACT.JS ?
Burhan Tahir
@iamshekhobaba
2. WHAT ARE THE MAIN
FEATURES OF REACT.JS?
Component-Based Architecture
Virtual DOM
Burhan Tahir
@iamshekhobaba
2. WHAT ARE THE MAIN
FEATURES OF REACT.JS?
JSX
Burhan Tahir
@iamshekhobaba
WHAT IS JSX?
Burhan Tahir
@iamshekhobaba
WHAT IS THE VIRTUAL DOM, AND
HOW DOES IT WORK IN REACT?
The Virtual DOM is a lightweight copy
of the real DOM maintained in memory
by React.
Burhan Tahir
@iamshekhobaba
WHAT ARE REACT COMPONENTS?
Burhan Tahir
@iamshekhobaba
WHAT IS THE DIFFERENCE BETWEEN
A CLASS COMPONENT AND A
FUNCTIONAL COMPONENT?
Class Components: Class components are
ES6 classes that extend from
React.Component and can hold and
manage their own state. They also have
lifecycle methods like componentDidMount,
componentDidUpdate, etc.
Burhan Tahir
@iamshekhobaba
WHAT ARE THE LIFECYCLE
METHODS IN REACT?
Lifecycle methods are special methods in
class components that get called at
different stages of a component's lifecycle,
such as when the component is being
mounted to the DOM, updated, or
unmounted. Key lifecycle methods include:
Burhan Tahir
@iamshekhobaba