Which function is correct here? 1 or 2 ? Why ?
"ONE" > function Welcome(props) { return <h1>Hello, {props.name}</h1>; } const element = <Welcome name="Sara" />; ReactDOM.render( element, document.getElementById('root') ); --------------------------------------------------------------------...
Oct 25, 2018G