Skip to content
kerfjsGitHub

Diagnostics

W005

state(prop): React's useState(prop) bug, the box never follows the prop.

Fix: state.linked(() => prop), or untrack for a one-time copy.

Status in kerf@0.1.0: reported, suggested edit.

Triggers it:

tsx
import { state } from '@kerf-js/core'export function A({ v }: any) { const s = state(v); return <p>{s.value}</p> }

More: kerf docs props.