How should I structure React code in a time-limited interview?
Start simple, split by visible component, keep state local initially, avoid premature abstraction, and use clear names. Do not pre-structure for an imagined future in a 90-minute round. A working app beats a well-architected half-built one.
Verify This Answer
Cross-check this information using these trusted sources:
More FAQs in How to Structure React Code Under Time Pressure
Only when it directly helps you build the next feature faster. Do not refactor for its own sake. Each refactor costs time, and in a 90-minute round, time is your scarcest resource.
Split by visible UI boundaries: header, sidebar, list, modal. Visible splits are easy to reason about and help you keep state in the right place, without elaborate architecture.
Start with local state. Use Context or lift to a parent only when multiple components need the same data. Do not reach for Redux or global state up front; that adds setup time you may not have.
Still have questions?
Browse all our FAQs or reach out to our support team
