React中state与props的区别

state可变,用于链接外部和父级组件,props不可变,接受从父级传下来的数据并链接到外部。

posted @ 2018-02-07 16:32  SKZB  阅读(165)  评论(0)    收藏  举报