Tekkaman

导航

 

propTypes

  React.PropTypes is deprecated as of React v15.5. Please use the prop-types library instead.

  

  You can define default values for your props by assigning to the special defaultPropsproperty:

  

参考:https://facebook.github.io/react/docs/typechecking-with-proptypes.html

posted on 2017-04-29 17:47  Tekkaman  阅读(191)  评论(0编辑  收藏  举报