`withForm` and `withFieldGroup` types for `render` and `props`
I have 2 questions.
Is there any reason why
Current state:
My use-case:
Is there any reason why the return type of
My use-case:
I can do
Question 1
Is there any reason why
TRenderProps in withForm and withFieldGroup are different?Current state:
withForm: TRenderProps extends object = Record<string, never>withFieldGroup: TRenderProps extends Record<string, unknown> = Record<string, never>My use-case:
Question 2
Is there any reason why the return type of
render is JSX.Element only instead of ReactNode for example?My use-case:
I can do
return <></> and that fixes it, but still...