My-Cro Center

Name: Acer Aspire 5 laptop

Price: $120000

Name: Asus Vivobook 14

Price: $56000

Name: Asus Vivobook 15

Price: $60000

Name: HP Pavilion laptop 15

Price: $75000

Name: Lenovo IdeaPad Slim 3i

Price: $45000

Name: Lenovo V14 Core i3 11th Gen

Price: $54500

Name: Asus ROG Strix G15 G513IE

Price: $115000

Name: Asus ROG Strix GL504GM-ES158T

Price: $150000

Name: Acer Aspire 3 A315-58

Price: $58000

Name: HP 14s-dq2775TU Core i7 11th Gen

Price: $76000

Order Summary

1. How React Works ?

Answer: React is a declarative, efficient, and flexible JavaScript library for building user interfaces. It designs views for each state in the application, updates, and renders just the right component when the data changes. Hence the declarative view makes that code more predictable and easier to debug. A React application is made of multiple components and each of them is responsible for rendering a small, reusable piece of HTML. Components can be nested within other components and doing that, allows complex applications to be built out of simple building blocks. React uses virtual dom in which it reserves the recent changes and it compares it with the react-dom, then discovers the changes between these two and updates the actual dom.

2.Props vs State

Answer: Props (short for properties) are a Component's configuration. They are received from above and immutable. A Component cannot change its props, but it put together the props of its child Components.
The state is a data structure that starts with a default value when a Component mounts. The state object is where the values are stored that belong to the component. A Component manages its state internally. Besides setting an initial state, it cannot fiddle with the state of its children.