npm react-final-form 6.1.0
v6.1.0

latest releases: 6.5.9, 6.5.8, 6.5.7...
5 years ago

New Features

  • Allowed swappable final-form APIs #520
  • 💥 Strongly typed form values for Flow and Typescript 💥 #516

Usage:

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

type MyValues = {
  email: string,
  password: string
}
const { Form } = withTypes<MyValues>()

<Form onSubmit={onSubmit}>
   {({ handleSubmit, values }) => {
     // values are of type MyValues
   }}
</Form>

Housekeeping

  • Remove context export #515
  • Simplify slightly logic around keeping latest value in ref #513

v6.0.1...v6.1.0

Don't miss a new react-final-form release

NewReleases is sending notifications on new releases.