What would be the common mistake of function being called every time the component renders?

Posted by Prem Tiwari | Updated on

What would be the common mistake of function being called every time the component renders?

You need to make sure that function is not being called while passing the function as a parameter.

Instead, pass the function itself without parenthesis:


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