📌  相关文章
📜  如何防止在反应中呈现 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:15.297000             🧑  作者: Mango

代码示例2
shouldComponentUpdate(nextProps, nextState) {
  return true;
}
//note that if shouldComponentUpdate returns false, then the component will
//not be updated. This is usefull to avoid redundant reload of same "view"