I want validate every step submit button.
you can use react-hook-form which is a very easy and efficient form validation.
read more:
you may split your form into components and for each component use yup validation or whatever for your target values and then add it to your state and so on for all pages, and when you complete all pages submit the form with the data that you already have in your state...
The fastest way to use validation in React is without using this below the library. It is easy to implement.