Passing props to compoments using spread syntax in React
function Profile(props) {
return (
<div className="card">
<Avatar {...props} />
</div>
)
}
See this reference, forwarding-props-with-the-jsx-spread-syntax.
function Profile(props) {
return (
<div className="card">
<Avatar {...props} />
</div>
)
}
See this reference, forwarding-props-with-the-jsx-spread-syntax.