Skip to content

Instantly share code, notes, and snippets.

@z-vr
Last active January 11, 2018 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save z-vr/7fcc3a8b78bbdf084612c633020977cc to your computer and use it in GitHub Desktop.
Save z-vr/7fcc3a8b78bbdf084612c633020977cc to your computer and use it in GitHub Desktop.
Breaking changes for react-form from v1 to v2
  1. To display error automatically: Text -> StyledText
  2. Use getApi to ref the form to be able to submit from outside.
  3. Validation must explicitly return null to reset errors.
  4. postSubmit is not a function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment