score:3

react-final-form supports value typing as of version 6.1.0.

You can achieve it by simply providing generic type to Form component.

import { withTypes } from 'react-final-form'

inteface IValues {
    name: string;
}

const { Form } = withTypes<IValues>()

<Form onSubmit={(values: IValues) => {}}>

Related Query

More Query from same tag