how to add function in functional component react 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>
}