What is the angular’s $watch function equivalent in React.js?

I want to listen state changes and call a function like getSearchResults().

componentDidMount: function() {
    this.getSearchResults();
}

8 Answers
8

Leave a Reply

Your email address will not be published. Required fields are marked *