React Props state 和props 主要的区别在于props 是不可变的,而state 可以根据与用户交互来改变。这就是为什么有些容器组件需要定义state 来更新和修改数据。
確定! 回上一頁