3 ms·
As a general rule do not use `this.react` inside `setState({ ... })` - this will cause you problems eventually due state updates being async. If you need to us
by hippich 9y ago
As a general rule do not use `this.react` inside `setState({ ... })` - this will cause you problems eventually due state updates being async.
If you need to use state to set new state, use functional callback instead - https://facebook.github.io/react/docs/react-component.html#setstate https://facebook.github.io/react/docs/react-component.html#s...