Skip to content

Commit

Permalink
fix onClick event syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukeghenco committed Feb 10, 2017
1 parent 288bd5a commit 2b33448
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ class App extends Component {

handleOnClick() {
this.props.store.dispatch({
type: 'GET_COUNT_OF_ITEMS',
type: 'INCREASE_COUNT',
});
}

render() {
return (
<div className="App">
<button onClick={(event) => this.handleOnClick}>
<button onClick={(event) => this.handleOnClick()}>
Click
</button>
<p>{this.props.items.length}</p>
Expand Down

0 comments on commit 2b33448

Please sign in to comment.