64
rated 0 times
[
65]
[
1]
/ answers: 1 / hits: 103476
/ 6 Years ago, sat, january 20, 2018, 12:00:00
I have a react js state object and would like to execute some code if the object is empty. Is there something wrong with my logic because the code inside the if block is not getting executed.
if (this.state.errors == null) {
this.props.updateUser(user);
this.props.navigation.goBack();
}
More From » react-native