Skip to content
weftGitHub

Diagnostics

W011

A number on the left of && (renders 0).

Fix: cond > 0 &&.

Status in weft@0.1.0: not reported by this weft yet.

Triggers it:

tsx
export function A({ xs }: any) { return <div>{xs.length && <p>has</p>}</div> }

More: weft docs lists.