Warning.js:45 Warning: setState(…): Can only update a mounted or mounting component
问题 I am new to js I am trying to use this.setState({ but I am getting a warning. can you guys tell me why I am getting the below warning warning.js:45 Warning: setState(...): Can only update a mounted or mounting component. This usually means you called setState() on an unmounted component. This is a no-op. Please check the code for the PerformanceChartNav component. Providing code below:- import React from 'react'; import {connect} from 'react-redux'; import moment from 'moment'; import height