I am writing in TypeScript. I am passing two objects as props to my React. From searching around I see I do that as such:
<MyComponent {...obj1} {...obj2} />
But how do I then use them in my actual component file?
Variations of:
const MyComponent = ({ ...obj1, ...obj2 }) => {
Don't seem to work.
Would anyone know how this is done?