0 votes
in ReactJS by

What are the significant differences between state and props?

1 Answer

0 votes
by

The difference between state and props are as follows:

StateProps
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 asynchronousProps are read-only

Related questions

0 votes
asked Jul 2, 2019 in ReactJS by Venkatshastri
0 votes
asked Oct 28, 2023 in ReactJS by DavidAnderson
...