Skip to content

Commit

Permalink
fix code in readme of redux example
Browse files Browse the repository at this point in the history
  • Loading branch information
tdumitrescu authored Mar 19, 2017
1 parent cdb157f commit 85e668e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions examples/redux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ document.registerElement('counter-app', class extends Component {
return {
defaultState: store.getState(),

template: props => h('.counter', [
h('.val', `Counter: ${props.count}`),
h('.controls', [
h('button.decr', {onclick: () => store.dispatch(decrCounter())}, '-'),
h('button.incr', {onclick: () => store.dispatch(incrCounter())}, '+'),
template: props => h('div.counter', [
h('div.val', `Counter: ${props.count}`),
h('div.controls', [
h('button.decr', {on: {click: () => store.dispatch(decrCounter())}}, '-'),
h('button.incr', {on: {click: () => store.dispatch(incrCounter())}}, '+'),
]),
]),
};
Expand Down

0 comments on commit 85e668e

Please sign in to comment.