0 votes
in ReactJS by
Why should not call setState in componentWillUnmount in ReactJs?

1 Answer

0 votes
by

You should not call setState() in componentWillUnmount() because once a component instance is unmounted, it will never be mounted again.

...