作者:HGFHE | 来源:互联网 | 2024-10-24 10:26
Why we need to call the useState function with an arrow function, like in this code:1 setCount(count
Why we need to call the useState function with an arrow function, like in this code:
1
| |
Istead of simply:
该提问来源于开源项目:reactjs/reactjs.org
Alright, I'll try this new approach, thanks my friend