The code powering m.abunchtell.com https://m.abunchtell.com
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

23 wiersze
733 B

  1. const Button = React.createClass({
  2. propTypes: {
  3. text: React.PropTypes.string.isRequired,
  4. onClick: React.PropTypes.func
  5. },
  6. handleClick (e) {
  7. e.preventDefault();
  8. this.props.onClick();
  9. },
  10. render () {
  11. return (
  12. <a href='#' onClick={this.handleClick} style={{ display: 'inline-block', position: 'relative', boxSizing: 'border-box', textAlign: 'center', border: '10px none', backgroundColor: '#2b90d9', color: '#fff', fontSize: '14px', fontWeight: '500', letterSpacing: '0', textTransform: 'uppercase', padding: '0 16px', height: '36px', cursor: 'pointer', lineHeight: '36px', borderRadius: '4px', textDecoration: 'none' }}>
  13. {this.props.text}
  14. </a>
  15. );
  16. }
  17. });
  18. export default Button;