frontend-foundation

State and Data Strategy

UI Contract

UI code interacts ONLY with hooks.

Example responsibilities:

UI never knows:


State Layer

The template currently ships without a concrete state library.

This is intentional.

A future project can introduce:

without modifying UI contracts.


Data Transport

Transport logic lives in clients.

Examples:

Switching fetch → Axios → cookies → server actions does not affect UI.


Why This Works

Because the system is designed around:

Not tools.