Warn when "false" or "true" is the value of a boolean DOM prop #13372
This is my first contribution that actually changes runtime behaviour, and involved some guesswork as to where to make what change to get the desired effect - so do take it with a grain of salt. I'm super willing to learn more about how React is written and fix anything that needs to be fixed in this PR, if the functionality is welcome.
This PR adds a new DEV-mode warning when the value
While working on facebook/flow#6727 I came across the different types of boolean DOM props, and specifically the fact that
I'm not entirely sure what
EDIT: Per feedback below, this now also warns on
The text was updated successfully, but these errors were encountered:
Details of bundled changes.
…ook#13372) * Warn when the string "false" is the value of a boolean DOM prop * Only warn on exact case match for "false" in DOM boolean props * Warn on string "true" as well as "false" in DOM boolean props * Clarify warnings on "true" / "false" values in DOM boolean props