I understand ES6 destructure and spread operators, but I am confused by their usage together. Can someone break this down into a way a layman can understand?
const index = ({title, description, ...props}) => {
return (
<div>
</div>
)
}
How does this work?
Something like this. Where
everythingElseExceptTitleAndDescription
creates a new object with all enumerable own properties of the argument excepttitle
anddescription