Adding additional props to component wrap with withForm
Hi @Luca | LeCarbonator . Currently learning the form apis. I would like to ask how would you pass additional props to a component that wraps
withForm
HOC. Do I need to defined that additional props in with default value? props: {}
in withForm
hoc?
Is there other way to handle this without setting a default value?
1 Reply
quickest-silver•4mo ago
since default values from props aren‘t used (and sunce LoginFormProps is a type instead of an interface), you can simply do
{} as LoginFormProps