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[@] Your question and answer will appear on and help other developers.

Related Questions & Answers