Skip to content

Commit 44f0176

Browse files
committed
Added parse and format example
1 parent 882654a commit 44f0176

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ const MyForm = () => (
124124
* [Reusable Field Groups](#reusable-field-groups)
125125
* [External Submit](#external-submit)
126126
* [Wizard Form](#wizard-form)
127+
* [Parse and Format (and Normalize)](#parse-and-format-and-normalize)
127128
* [Rendering](#rendering)
128129
* [API](#api)
129130
* [`Field : React.ComponentType<FieldProps>`](#field--reactcomponenttypefieldprops)
@@ -287,6 +288,10 @@ a submit from outside of the form. For more information, see
287288
Demonstrates how to use 🏁 React Final Form to create a multi-page "wizard"
288289
form, with validation on each page.
289290

291+
### [Parse and Format (and Normalize)](https://codesandbox.io/s/10rzowm323)
292+
293+
Demonstrates how to use 🏁 React Final Form's `parse` and `format` props to control exactly how the data flows from the form state through the input and back to the form state. Notice that you can use `parse` to "normalize" your values.
294+
290295
## Rendering
291296

292297
There are three ways to tell `<Form/>` and `<Field/>` what to render:

0 commit comments

Comments
 (0)