# `react-doctor/no-string-false-on-boolean-attribute`

String true/false on a boolean attribute

- **Category:** Bugs
- **Severity:** warn
- **Source:** oxlint-plugin-react-doctor
- **Framework:** global
- **Enabled when:** react

## Validation prompt

Use this to decide whether a fired diagnostic is real or a false positive.

Confirm the reported code matches String true/false on a boolean attribute. Check the framework context and diagnostic message before suppressing it.

## Fix prompt

Use this once validation confirms the diagnostic is real.

Use the boolean form on boolean attributes: `disabled` / `disabled={true}` / `disabled={false}`, not `disabled="false"`. A non-empty string is truthy, so `="false"` actually turns the attribute ON.
