Skip to content

Commit

Permalink
fix(README): subjectFactory example
Browse files Browse the repository at this point in the history
  • Loading branch information
josepot committed Jul 12, 2020
1 parent 20cb9e5 commit a3d9dd1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ const useCounter = connectFactoryObservable(
const Counter: React.FC<{id: string}> = ({id}) => {
const counter = useCounter(id);
return (
<button onClick={onDec(id)} />-</button>
<button onClick={() => onDec(id)} />-</button>
{counter}
<button onClick={onInc(id)} />+</button
<button onClick={() => onInc(id)} />+</button
)
}
```
Expand Down

0 comments on commit a3d9dd1

Please sign in to comment.