Electronics Store

Laptop

Price: $60000

iPhone

Price: $110000

Smart-Tv

Price: $30000

Smart-Watch

Price: $3000

tablet

Price: $25000

Kayboard

Price: $2000

Mouse

Price: $1200

Fan

Price: $2700

Air-Condition

Price: $35000

Selected Item

How React Works?

React is a JavaScript library that uses declarative programming to construct efficient user interfaces. Using React, we can create single-page applications and mobile apps. React uses virtual DOM, which is a JavaScript version of a DOM tree. As a result, it will use the virtual representation of the DOM when reading or writing to it. The virtual DOM will then attempt to update the browser's DOM in the most efficient manner possible.

Difference between Props and State

Props are used to pass data from one component to onother component. On the other hand state is a local data storage, this is local component only. It's can not be pass any component any where. if user interfare website, they can be change anything in website interface it is called state. If user inteface in the ui state can be change but props could not be change.