How to test a prop update on React component?

Posted by Jessica Taylor | Updated on

Want to test a prop update on React component It provides a setProps method, that can be called on either a shallow or jsdom wrapper.

Reference:
https://stackoverflow.com/questions/30614454/how-to-test-a-prop-update-on-react-component


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