Maybe it's a dumb question but I can't figure out how to pass a nested prop when I call the component Welcome inside the Wrapper. Does it considered a good practice to use nested properties?. If there are several answers I would like to know all of them.
function Welcome(props) {
return (
<>
<h2>Hello, {props.name}</h2>
<h2> lastname: {props.name.lastName}</h2>
</>
)
}
function Wrapper(props) {
return(
<>
<Welcome name={ 'jota'} />
</>
)
}