我得到了这个错误的setState(...): Can only update a mounted or mounting component.,但我不知道如何解决它。import React, { Component } from 'react';
</center> );}
export default Loadin
我有一个显示项目列表的页面,当用户单击该特定项目时,视图组件将在render()中调用。which sets state the "view" to false this.props.back();当在子节点调用dismiss()函数来呈现列表组件compA时,会弹出一个警告:
Warning: setState(...): Can only update a mounted or mounting component.<