I would like to understand the React code below; Specifically, I am assuming that the is rendering component of this but the "Welcome" in the snippet above refers to the "Welcome" function at the top and that the rendinring runs the function through 3 iterations, one for each name??
...
function Welcome(props) {
return <h1>Hello, {props.name}</h1>;
}
function App() {
return (
<div>
<Welcome name="Sara" />
<Welcome name="Cahal" />
<Welcome name="Edite" />
</div>
);
}
ReactDOM.render(
<App />,
document.getElementById('root')
);