1 min readFeb 23, 2018
The point is you should not use setState
in componentDidMount
*directly* — you can still start an async action and setState
in the callback, once the job is done.
The point is you should not use setState
in componentDidMount
*directly* — you can still start an async action and setState
in the callback, once the job is done.