Why is it a bad idea to call setState() immediately after componentDidMount in React?
Most of the times, I am doing ajax calls after component mounts and do a setState
to reflect the changes in view. Why is it considered a bad practice?
Most of the times, I am doing ajax calls after component mounts and do a setState
to reflect the changes in view. Why is it considered a bad practice?