【发布时间】:2016-11-11 09:30:55
【问题描述】:
我想展示一个组件当前和下一个道具之间的区别。例如:
componentWillReceiveProps(nextProps) {
let diff = someFunction(this.props, nextProps);
console.log(diff);
}
这是怎么做到的?
【问题讨论】:
-
会回答这样的帮助吗?我不认为 React 有什么原生的东西:stackoverflow.com/questions/264430/…
标签: reactjs