How to use arrow function in constructor of a react component?

Posted by Jessica Taylor | Updated on

Want to use arrow function in constructor of a react component? Option 1 is generally more preferable for certain reasons.

Prototype method is cleaner to extend. Child class can override or extend doSomething with


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