Multi Step Form Using React.

Solution retrospective
Should I create two different components for the mobile/desktop app or should I stick to a single one?
Pointing out mistakes in my code is always useful :)
Thanks for your help.
Please log in to post a comment
Log in with GitHubCommunity feedback
- @adityaphasu
Hi!
I still haven't done this challenge yet (soon though) but from the react point of view, I think a single one should be fine for this one since the logic here remains the same and only the layout changes so a CSS/Responsive approach might be better in my opinion.
It mostly depends if the app has say a different feature on a desktop and a mobile one then in that case different components might be a better idea than having a single component.
From my pov, if the differences are mainly cosmetic or layout-related then a single component, and if the differences involve different logic or there are very heavy performance issues then separate components are more suitable.
Marked as helpful
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