⚡ Multi-Step Form in React + State Management with ContextAPI ⚡

Solution retrospective
This challenge was a nice project to practice state management of the whole app with Context API, storing all the data at the top level and retrieving it from grandchildren without prop drilling. Initial data is rendered dynamically from data.js
Step transitions are smooth with subtle fade-in animations. Clicking on plans or add-ons also produce some little ripple effect 🔥
Note: This was built some while ago, so with my current knowledge, i'm aware that the code needs some changes regarding best practices and some more improvements in terms of semantic HTML etc. Also the form validation is basic. (not checking for @ etc., type number for phone etc.)
Please log in to post a comment
Log in with GitHubCommunity feedback
- @hector-kuentro
Hi visualdenniss, I liked the ripple animation in buttons and the fade transitions between sections.
You could use the onBlur property on inputs to show an error message if the user didn't provide any value to that input; and also maybe use a regex to validate the email address.
Otherwise, it's a great solution!
Marked as helpful - @CatalinBanici
Nice! With Context API seems legit! I also done this challenge and I was prop drilling the heck out of it. It was a mess 😅
- @MARVELGARR
bro... i need help on my skills ..i did this using vanilla js and it was hard yours is great
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord