docs: Remove unnecessary void operator (#2994)

This commit is contained in:
이선재 2025-02-04 19:37:36 +09:00 committed by GitHub
parent 0beabe59bd
commit 65402b01d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>