- 博客(1)
- 收藏
- 关注
原创 useState实现原理
useState 函数作用:声明状态和修改状态的函数(废话不多说)let state = []let setters = []let index = 0function createState(index) { return function (newState) { state[index] = newState render()
2022-03-24 12:42:19 1657 1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人