Responsive design with NextJS, TailwindCSS, React-Hook-Form validation

Solution retrospective
It was fun to figure out how to refocus on a field after submission and form reset. Making sure that the form was not "dirty" did the trick:
What specific areas of your project would you like help with?useEffect(() => { if (!isDirty) { setFocus("firstName"); } }, [setFocus, isDirty]);
I want to ask for my code review. At times, my code feels hacky to me. Your opinion is highly welcome and appreciated! Thanks!
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on solvman's solution.
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