Why should not call setState in componentWillUnmount?
You should not call setState()
in componentWillUnmount()
because once a component instance is unmounted, it will never be mounted again.
June 08, 2022
148
Read more
What is React?
November 06, 2022
ReactJSHow to programmatically trigger click event in React?
November 06, 2022
ReactJS