I'm implementing a generic component which accept as prop as any HTML element in TypeScript.
<Component as='div' {...myProps} {...divProps} />
<Component as='button' {...myProps} {...buttonProps} />
I just get lost while trying to define my component's prop as any HTML element.
Please share your advice.
Thanks.