class Welcome extends React.Component {
render() {
return <h1>Hello, {this.props.name}</h1>;
}
}function Welcome(props) {
return <h1>Hello, {props.name}</h1>;
}function multiply(a,b){
return a*b;
}const WeatherCard = (props)=>{
return(
<h1>Hello, {props.name}</h1>
)
}
<WeatherCard name='World!'/> //Returns Hello, World!const [name, setName] = useState('');
setName('Hello');Container (Engine)
Presentation
Elements
Re-Render
Subscribe for more!
Shehata@msmo.io
github.com/ms-mousa