Professional Documents
Culture Documents
VIRTUAL DOM:
React builds a representation of the browser Document Object Model or DOM in memory
called the virtual DOM. As components are updated, React checks to see if the component’s
HTML code in the virtual DOM matches the browser DOM. If a change is required, the
browser DOM is updated. If nothing has changed, then no update is performed. this is called
the reconciliation process
Types of components:
1) Functional component :- functional components are reusable blocks of code that
act like a JavaScript function and you can pass data from one component to another using
props.
2) Class component :-
Component vs Module
Component: small pieces of functionality
Module: series of component
Limitation:
Props.children:-
Data in react
Props
State
Keys in react: keys are the identifiers to identify which items are changed,
added and removed and instruct treatment of elements when updates
happen.
Component composition
Component Containment
Component specialization
React.Children
Higher Order Component