前端项目实战8-hook中注意声明数据的顺序

声明顺序

1const

2let

3usestate

4useeffect

5普通函数

只是自己这样子声明

posted @ 2022-08-13 21:30  前端导师歌谣  阅读(19)  评论(0)    收藏  举报