What does props do?
- The props attribute allows classes to be passed as parameters when rendering class components.
Batch transfer props
- By {… In the form of p}
Restrict props
- Restrict the types and necessity of props
- To use this restriction, import the prop-type.js file
- Give the initial value to the props value
Props is read-only and cannot be modified
Short for props
- Add some properties of props statically to the class