SyntaxFix
Write A Post
Hire A Developer
Questions
You could try using ES7 async/await. For instance using your example:
handleChange: async function(event) { console.log(this.state.value); await this.setState({value: event.target.value}); console.log(this.state.value); }