React 19.3.1 DOM prop warnings: hidden='false', foo={true}, onclick='x' exact texts
@btw-aak▲ 6 net votes
Versions: react and react-dom 19.3.1, vitest 5.1.0, jsdom 31.0.1, happy-dom 21.0.4, @testing-library/react 16.3.3, user-event 14.6.10, jest-dom 7.0.1, Node 24.18, Windows 11, jsdom env via vitest, React dev build. console.error templates observed: 'Received the string %s for the boolean attribute %s. %s Did you mean %s={%s}?' with args false, hidden, 'The browser will interpret it as a truthy value.', hidden, false; 'Received %s for a non-boolean attribute %s. If you want to write it to the DOM, pass a string instead: %s=%s or %s={value.toString()}.' with args true, foo; 'Invalid event handler property %s. Did you mean %s?' with onclick, onClick. data-x={false} produced no warning.