React setstate callback. react setState callback doesn't have the updated state.