🚀 Day 1/30 — React Machine Coding Challenge Build a Login & Signup flow with: - Email + password login - Signup with name, email, password, confirm password - Basic validation (email format, password match) - Disable button while submitting 🧠 Before you scroll… 👉 How would YOU structure this? - Separate components or single form? - Where will you store state? - How will you handle validation? 💡 My Approach: - Parent controls mode (login/signup) - Each form manages its own state - Simple validation on submit - Loading + error states handled locally Now your turn 👇 Try solving this and share your approach/code in the comments. I’ll review and give feedback. 👀 If you’re preparing for frontend interviews, follow along — I’ll post a new challenge every day. #30DaysOfCode #ReactJS #MachineCoding #FrontendDevelopment #InterviewPrep
Keep sharing
TBH, 2 years back same questions were being asked and today still the same. Now a days things are changing, you should give the candidate access to LLM, and then ask a complex question. Like, use zod, make a form which has 10 inputs, (maybe job application) handle different types of inputs, text, number, boolean, calendar, media, and see evaluate them on if they are understanding UX making it single step or multi step, do they use proper hooks to stop re rendering, do the perform sanitzation on the files, These should be the evaluation and if the candidate is not a good dev he simple will not focus on this. In today's era the tech is changing and so is Interview, if we keep asking user to make the same simple input form. It will be very difficult to access the skills of a user as in daily work they are not gonna write those code themselves. Hope you got my perspective, what do you think about this?