How to listen for changes in prop state in ReactJS?

Posted by Andre Scott | Updated on

Want to listen for changes in prop state in ReactJS? In this case, you probably want to store selectedPage on the parent’s state object, causing the render method to look like:


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers