Login
Remember
Register
Ask a Question
What are the significant differences between state and props?
0
votes
asked
Nov 26, 2019
in
ReactJS
by
AdilsonLima
What are the significant differences between state and props?
#reactjs
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Nov 26, 2019
by
AdilsonLima
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
...