Ecach Product Item
Xiaomi WiFi Repeater Pro (Dual Antenna, 300M)....

$46

Ecach Product Item
Xiaomi Mi TV Stick with Google Assistant 1GB/....

$43

Ecach Product Item
Xiaomi Mi Hair Clipper-Fast Charging Recharge....

$30

Ecach Product Item
Xiaomi Mi 360 Rotation IP Camera with Night V....

$48

Ecach Product Item
HD Night Vision Binocular High Clarity Telesc....

$37

Ecach Product Item
WGP Router & ONU UPS- Backup Up To 8 Hours (5....

$21

Ecach Product Item
Vibrating Massaging Travel Neck Pillow....

$14

Ecach Product Item
UGreen Bluetooth Dongle Adapter For PC/Laptop....

$9

Ecach Product Item
Touch-Free Automatic Sensor Liquid Soap Dispe....

$15

Ecach Product Item
FIFINE K690 USB Microphone (Blue Yeti Killer)....

$120

Ecach Product Item
BOYA MM1 Microphone- Vlogging & YouTube Video....

$24

Questions And Answer

How does React Work?

Ans:React is a library for building user interfaces.It converts JavaScript code to JSX(JavaScript XML) by the help of react package. It makes a vartual dom when users interact on the client site. React compares changes between real DOM and vartual DOM. And it update only the spacific changes on the Real DOM without reloading the webpage by the help of React DOM. As it works without reloading the page it is very fast and popular among the developers

What are the differences between props and state ?

    Props

  • The Data is passed from one component to another.
  • It is Immutable (cannot be modified).
  • Props can be used with state and functional components.
  • Props are used to pass data from one component to another.

    State

  • The Data is passed within the component only.
  • It is Mutable ( can be modified).
  • State can be used only with the state components/class component (Before 16.0).

How does useState work?

Ans:useState is a Hook that allows developer to have state variables in functional components. It can store value, objects in an array. Use state is an array which has 2 elements. One is a start variable and other is a store function. The set function help developer to store the value on the state variable as an array for future uses.