Closed ahdinosaur closed 6 years ago
example: isOpen rather than open
isOpen
open
helps disambiguate from open being a function which toggles the thing.
i remember seeing this idea on some "React best practices at our company" thing, i wonder where that was. :thinking:
found something: https://github.com/eventbrite/javascript/tree/master/react#boolean-proptypes
example:
isOpen
rather thanopen
helps disambiguate from
open
being a function which toggles the thing.