Skip to content

Commit 6acb987

Browse files
committed
README fix
1 parent ed1b5d8 commit 6acb987

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ const App = () => {
5858
return (
5959
<div>
6060
<button onClick={showCounter.toggle}> toggle counter </button>
61-
<button onClick={counter.increase}> increase </button>
61+
<button onClick={() => counter.increase()}> increase </button>
6262
{showCounter.value && <span> {counter.value} </span>}
63-
<button onClick={counter.decrease}> decrease </button>
63+
<button onClick={() => counter.decrease()}> decrease </button>
6464
<button onClick={todos.clear}> clear todos </button>
6565
<input type="text" value={newTodo.value} onChange={newTodo.onChange} />
6666
</div>
@@ -142,8 +142,8 @@ const newTodo = useInput("");
142142
```
143143

144144
```jsx
145-
<input {...newTodo.bindToInput} />
146-
<Slider {...newTodo.bind} />
145+
<input {...newTodo.eventBind} />
146+
<Slider {...newTodo.valueBind} />
147147
```
148148

149149
Methods:

0 commit comments

Comments
 (0)