DEV Community

Discussion on: How to create simple multi-step sign in with validation

Collapse
jonhualde profile image
Jon

Hi Alexander, thank you for sharing this article.

I'm using React/Redux on a multi-step form as well. By reading your article, I was thinking on a use case.

In your example, the user can enter an email, and then can move to the 'sign up' section. But we cannot move back to change the email (eg: using the browser's backwards feature).

Let's assume we have that feature implemented using a router. (eg: pcz55.csb.app/email and pcz55.csb.app/signUp)

How would you pass the data from Redux to the component? Would you connect the parent component (App.jsx) to the store and pass the data to the child component as props? Or would you connect the Redux store directly to the email component?