Large-Team React Engineering
At scale, React problems become organizational as much as technical: ownership, stable contracts, dependency direction, migration policy, review quality, and change coordination all shape the architecture.
Architecture should mirror ownership
A feature boundary can look like:
features/
billing/
components/
hooks/
data/
tests/
types/
index.ts
The exact folder names are not the point. The point is that one domain can evolve behind a deliberate public surface.
Deep imports turn implementation layout into an accidental organization-wide contract.
State ownership should follow domain ownership
A giant global store often becomes organizational coupling disguised as convenience.
Shared libraries need a higher contract bar
Move code into a shared package because it represents a stable shared concept—not merely because two implementations currently look similar.
The design system is infrastructure
Use generic primitives such as Dialog; keep business-specific content and workflows in domain features.
Avoid a framework inside the framework
Before creating a custom framework layer, ask what repeated problem it solves, why ordinary React is insufficient, what the escape hatch is, who owns it for years, and how it can be removed.
ADRs preserve why a decision exists
Title
Status
Context
Decision
Alternatives considered
Consequences
Migration plan
Owner
Date
Useful ADR topics include state strategy, URL conventions, RSC/client boundaries, error strategy, design-system ownership, cache/data layer, compiler rollout, and testing policy.
Let automation handle mechanical review
Human reviewers should spend attention on decisions tools cannot reliably make.
Make recurring production lessons explicit
React PR checklist
- state owner is clear
- no unnecessary Effect-derived state
- stable domain keys
- semantic HTML/accessibility
- runtime validation at trust boundaries
- tests at the correct layer
- new shared APIs documented
- observability for critical flows
- migration notes for breaking changes
Checklists should encode repeated failure patterns, not personal style preferences.
Ownership must be discoverable
Dependency direction prevents organizational cycles
Exact layering varies, but cycles such as Team A internals → Team B internals → Team C state → Team A helper should trigger architectural review.
Global Context can create invisible coupling
Provider scope should be no broader than the dependency requires.
Stable APIs matter more than stable internals
A feature may move internally from useReducer to a state machine or server cache without forcing consumers to change if its public contract remains stable.
Large-team change lifecycle
Large-team React architecture succeeds when teams can change their internals independently while shared boundaries remain understandable, testable, observable, and intentionally governed.