ForgeFrontend — Prepare, Practice, Crack
Secure checkout
Lifetime access
Instant Drive delivery
Free updates forever

Prepare · Practice · Crack

How would you structure a large React project's folders?

Quick answer

Group by feature, not by file type. Co-locate components, hooks, and tests; keep shared UI/utilities separate; keep routes thin.

In detail

A feature-based structure (features/auth, features/cart, each with its components/hooks/api/tests) scales better than type-based (all components in one folder). Share truly reusable pieces in a components/ui and lib/ folder. Keep business logic in hooks/services, keep components focused on rendering, and avoid deep prop drilling with context or a store where appropriate.

Why interviewers ask this: Architecture judgement matters for senior and startup roles.

This is 1 of 118+ questions in the React Interview Kit

Get every question with detailed answers, follow-ups and real code — plus coding challenges and a last-minute revision sheet. One-time payment, instant access.

⚡ Get the React Interview Kit → ₹399

Full kit

React Interview Kit · ₹399

Get it →