Could someone, please, tel me what is the : {name : "Taylor"} in the code below:
ReactDOM.render(React.createElement(HelloMessage, { name: "Taylor" }),
document.getElementById('hello-example'));
Could someone, please, tel me what is the : {name : "Taylor"} in the code below:
ReactDOM.render(React.createElement(HelloMessage, { name: "Taylor" }),
document.getElementById('hello-example'));
 
    
     
    
    It passes the object { name: "Taylor" } into the props object for the HelloMessage component.
As a result, inside the HelloMessage component, props.name will equal "Taylor".
For more info see here: https://reactjs.org/docs/react-without-jsx.html
