From 19474d184f620fbd4954c692a3159a574585e84e Mon Sep 17 00:00:00 2001 From: "Jonatan E. Salas" Date: Fri, 28 Feb 2020 19:49:44 -0300 Subject: [PATCH] fix: fix setFieldData function calling in example from README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e8d57ab..8310c09 100644 --- a/README.md +++ b/README.md @@ -35,8 +35,6 @@ const form = createForm({ onSubmit }) -form.mutators.setFieldData('firstName', { awesome: true }) - form.registerField( 'firstName', fieldState => { @@ -47,6 +45,8 @@ form.registerField( data: true } ) + +form.mutators.setFieldData('firstName', { awesome: true }) ``` ## Mutator