I have a component with a couple of input fields that updates the state of the component using the valueLink={this.linkState('foo')}
facility provided by React.addons.LinkedStateMixin
.
Prior to this I was using the onChange
handler to communicate the changes back to the server using a websocket connection, so I was wondering if I could replicate this behaviour somewhat and post the changes in the state back using a "state change listener" of some sorts?
Thanks.
看起来我正在寻找的方法是componentDidUpdate()
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.