Print Welcome "name" React

PHOTO EMBED

Sat May 23 2020 21:38:48 GMT+0000 (Coordinated Universal Time)

Saved by @bmweinstein

function Welcome(props) {
  return <h1>Hello, {props.name}</h1>;
}


const element = <Welcome name="Sara" />;
ReactDOM.render(
  element,
  document.getElementById('root')
);
content_copyCOPY

https://reactjs.org/docs/components-and-props.html