mirror of
https://github.com/pmndrs/zustand.git
synced 2025-12-08 19:45:52 +00:00
docs: Remove unnecessary void operator (#2994)
This commit is contained in:
parent
0beabe59bd
commit
65402b01d6
@ -264,10 +264,10 @@ export const HomePage = () => {
|
||||
<div>
|
||||
Count: {count}
|
||||
<hr />
|
||||
<button type="button" onClick={() => void incrementCount()}>
|
||||
<button type="button" onClick={incrementCount}>
|
||||
Increment Count
|
||||
</button>
|
||||
<button type="button" onClick={() => void decrementCount()}>
|
||||
<button type="button" onClick={decrementCount}>
|
||||
Decrement Count
|
||||
</button>
|
||||
</div>
|
||||
@ -334,10 +334,10 @@ export const HomePage = () => {
|
||||
<div>
|
||||
Count: {count}
|
||||
<hr />
|
||||
<button type="button" onClick={() => void incrementCount()}>
|
||||
<button type="button" onClick={incrementCount}>
|
||||
Increment Count
|
||||
</button>
|
||||
<button type="button" onClick={() => void decrementCount()}>
|
||||
<button type="button" onClick={decrementCount}>
|
||||
Decrement Count
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user