Typescript type for generic html props passthrough?
Looking to create a generic wrapper component that can take arbitrary HTML props (class, etc) without manually defining each prop. The Component type is too generic in this case. Is there a simple way to union the Component type with the generic HTML types? React has the
React.HTMLProps option. Is there recommended approach?