Working with Forms in Redux

  • The initial state is the empty object {}. If you want the form to contain some default values, you can provide them in the initial state e.g. { subscribeToNewsletter: true}.
  • The reducer handles exactly two actions: EDIT_CONTACT_FORM, using which you can edit the values for one more fields, and CLEAR_CONTACT_FORM, using which you can clear the contents of the form.



Founder, Jovian

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store