How to listen state changes in react.js?

The Solution to How to listen state changes in react.js? is


The following lifecycle methods will be called when state changes. You can use the provided arguments and the current state to determine if something meaningful changed.

componentWillUpdate(object nextProps, object nextState)
componentDidUpdate(object prevProps, object prevState)

~ Answered on 2014-10-16 15:54:00


Most Viewed Questions: