Exercise Time: 10m
Exercise Time: 15m
Exercise Time: 12m
Exercise Time: 15m
Exercise Time: 14m
Exercise Time: 10m
Chattogram, Bangladesh
Weight
Height
Age
React reads these objects and uses them to create HTML elements on the virtual DOM, after which it gets synced with the real DOM. So we'll have trees of objects on the virtual DOM and trees of objects on the real DOM. React automatically updates the associated DOM element when we change data on a React element.
Props are used to pass data from one component to another. The state is a local data storage that is local to the component only and cannot be passed to other components.
useEffect is a basic hook that gets triggered on a combination of 3 React component lifecycles: componentDidMount. componentDid.