Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { SmartComponent, d } from 'au-flux';
- import React from 'react';
- class ButtonComponent extends React.Component {
- render() {
- return (
- <div>
- <button onClick={() => d.trigger('add_like')}>{this.props.likeCount}</button>
- </div>
- );
- }
- }
- export default SmartComponent.build(Button, 'likeCount');
Add Comment
Please, Sign In to add comment