Skip to content
kerfjsGitHub

Diagnostics

W040

Early return in a component body that depends on state (runs once, never re-checked).

Fix: Branch in JSX.

Status in kerf@0.1.0: reported.

Triggers it:

tsx
import { state } from '@kerf-js/core'export function A() { const n = state(0); if (n.value > 1) return null; return <p>{n.value}</p> }