react 子组件渲染

react接受新的props子组件渲染

或者直接使用 this.props;
或者将数据保存到 state,使用
componentWillReceiveProps 函数调用 this.setState 重新渲染

发布了43 篇原创文章 · 获赞 0 · 访问量 887

猜你喜欢

转载自blog.csdn.net/weixin_37562241/article/details/104437784