What is React Props and how to use this.?

What is React Props and how to use this.?

By Manish Arora

Props as like Properties it can read only components.

 it's like object where we can stores the value of attributes of a tag and work as like HTML attributes 

props gives a way to pass data from one components to another components.

function FirstComponent(props){    return(        <div>            <h2>Hello {props.user}</h2>            <h3>Welcome to GeeksforGeeks</h3>         </div>    ); } ReactDOM.render(    FirstComponent user = "Manish Arora" />,    document.getElementById("root") );

Other Stories

15 ways the speed up Windows 10

Apple’s new AirPods Pro are worth and Should Buy ?