Guest User

Untitled

a guest
Nov 17th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. import { SmartComponent, d } from 'au-flux';
  2. import React from 'react';
  3.  
  4. class ButtonComponent extends React.Component {
  5. render() {
  6. return (
  7. <div>
  8. <button onClick={() => d.trigger('add_like')}>{this.props.likeCount}</button>
  9. </div>
  10. );
  11. }
  12. }
  13.  
  14. export default SmartComponent.build(Button, 'likeCount');
Add Comment
Please, Sign In to add comment