; { Component, PropTypes } ; classnames ; { } ; { } ; (); //有点糊涂 Button Component { () { (); .state { disabled.props.disabled, show}; } () { (.disabled .props.disabled) { .setState({ disabled.disabled }); } } () { .setState({ disabled, show}); } () { .setState({ disabled, show}); } () { (.props.onClick) { .props.onClick(); } (.props.once) { .(); } } () { .props.status; () { ${}; } classnames( .props.className, (.props.grid), , ); ( <{..()} {.props.style} {.state.disabled} {} {.props.type }> { .state.show .props.children } </> ); } } //不懂 Button.propTypes { childrenPropTypes., classNamePropTypes.string, disabledPropTypes.bool, onClickPropTypes.func, oncePropTypes.bool, statusPropTypes.string, stylePropTypes.object, typePropTypes.oneOf([, ]) }; .Button;