How to structure a React Container and Component to handle a form's lifecycle?

Viewed 721

I would like some experienced advise on how to organize my container and component.

  • My React Container is InvitePage
  • My React Component is InviteForm

My question is, when the user submits the form in the React.Component InviteForm, where should I have the handleSubmit function? In the container or the component?

Also, after handleSubmit, where should I have the code that updates the view to show the user a success UI - example: Success! Your invites hav been sent.

What's the best practice to solve the above react form-redux lifecycle in React?

1 Answers
Related