React form onChange->setState one step behind

前端 未结 7 1551
南方客
南方客 2020-12-02 12:21

I encountered this problem building a webapp and I replicated it in this jsfiddle. Essentially, I would like an input to call this.setState({message: input_val})

7条回答
提交回复
热议问题