can i use a function as a component in react code example Example: react function component function Welcome(props) { return <h1>Hello, {props.name}</h1>; }