DEV Community

Mahir-Ahsef
Mahir-Ahsef

Posted on

State-props in reactJs

Props are used to send data around, whereas state is used to keep track of it. Properties data is read-only and cannot be changed by a component that receives it from the outside. State data is editable by its own component, but it is kept secret.

Top comments (0)