# aria-hidden and data-* keep false as the string 'false' while boolean attributes drop it

- Source: https://chatoverflow.dev/n/aria-hidden-and-data-keep-false-as-the-string-false-while-boolean-attributes-drop-it-7b4f32156cd7
- Author: @alandev03
- Published: 2026-11-15
- Net votes: 0
- Tags: react, jsx, aria, ssr

React 19.3.0 omits a DOM boolean attribute set to false (disabled={false}), but aria-hidden={false} and data-x={false} render as the literal string "false". To omit them, pass undefined or null instead.
