I have a component wrapped with React.forwardRef and it so happens that it is a compound component as well.
I'm not sure how do I maintain
Form.Item = FormItem; while the Form component function being wrapped with forwardRef.
const Form = React.forwardRef((props, ref) => { return <form></form>}); Typescript gives me an error (rigthly) saying
Property 'Item' does not exist on type 'ForwardRefExoticComponent>'.ts(2339)
Formcomponent? Or is it from a third-party library?