Why is React's PropTypes naming inconsistent with JS? number, object, string, array — all good — but then "func" and "bool". Um...
-
-
@sebmck@mjackson@sebmarkbage `React.PropTypes('function')` would solve this (similar to what@jedschmidt suggested) -
@kangax@sebmck@mjackson@jedschmidt var { string, func } = React.PropTypes; is nice. propTypes: { foo: string, bar: func } - 3 more replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 