React, what does this.props stand for here?

clipboard.png
as shown in the figure, what does the this.props stand for here? is it a calling method?

Mar.17,2021

is an object passed from the parent component, in which there are values, methods, and many things


. Look here


this is the method passed down from the parent component, which is defined in the parent component. Pass the required data in the child component to


which is finally executed in the parent component.

get the value passed from the parent component

<Parents>
    <child data={a:1}/>
</Parents>  

// child.js
child.js this.props.data = {a: 1} 
Menu