Comparing PrevProps in componentDidUpdate

Posted by Prem Tiwari | Updated on

You are actually updating the original array, and so when you go to do a comparison you are comparing the two exact same arrays ALWAYS.


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