Categories

Nov 26, 2019 in React JS

Q:

What are the significant differences between state and props?

1 Answer

Nov 26, 2019

The difference between state and props are as follows:

State Props
The state is completely managed within a component for internal communication. Props are directly passed to its parents with child component.
State can be modified using setState() method. A particular component should never modify its own props.
State changes can be asynchronous Props are read-only
Click here to read more about React JS
Click here to read more about Insurance

Related questions

Madanswer
Jul 2, 2019 in React JS
Jul 2, 2019 in React JS
Jun 19 in React JS
...