React Basics — What is the difference between state and props?
Published in
1 min readJul 13, 2019
Both state and props hold info about the component, but they are different and should be kept separate.
What is state?
- Contains private info, it cannot fiddle with the state of its children.
- state is mutable with setState(). state can…