Skip to content
Local time9:41am12 March, 2025

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

CategoryCode quality
Also filed underDesign
Checks in this category216
ISO/IEC 25010Maintainability: modifiability
Breaks caught3