What it does
A plain function or hook exported from a "use client" module, with nothing on the export side saying it cannot be called from a server component.
How it helps you
Developers get warned when a browser-only function can't be used on the server.
Tested against itself
3 deliberate breaks, all caught
We change this check on purpose and watch its test fail. Each dot is one of those changes.
Details
| Category | Code quality |
|---|---|
| Also filed under | Design |
| Checks in this category | 216 |
| ISO/IEC 25010 | Maintainability: modifiability |
| Breaks caught | 3 |