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