react functional programming code example
Example: react functional component example
function Greeting(props) {
return <h1> Hello, {props.name}! </h1>
}
function Greeting(props) {
return <h1> Hello, {props.name}! </h1>
}