What does this.props in react.js contain?

it is said that the this.props in react.js is the object passed from the parent component to the child component

I print out the this.props to show the following
clipboard.png

what is in the this.props without a parent component?

=
is there any article that explains this props in detail

I want to know what this props is and the specific analysis of this object

Mar.16,2021

props is a concept relative to child components. If you don't have a parent component, you don't have a child component (fog

)

there is a description of props link Components and Props

in the official document.

combined with your previous question, the props you printed out is the props given by the high-level component withRouter to the subcomponent.


if a component is defined, the data passed on the component belongs to props

.
  

it's not right for you to print in this way. You should print this.props, in the top-level component on the premise that you only use react. The props, in your question is an attribute added to props by the layers of components above your current component. Just like react-redux will add your state to props for a reason

Menu