React has stuff called props, just like the attriutes in HTML. These props, like attributes pass data to the element. So, the props is gotten from the custom component and sent to the function where it is read as a props object. With object destructurung, we can distribute these props.
technically, it's possible to use an object im the JSX redintion instead of normal, HTML like properties. This object would be wrapped in curly braces to notify react that it's JS. You'd have to account for the object in the compomemt function