I appreciate everyone's point of view. I am a Frontend engineer and I have to coordinate with backend developers most of the time and I have noted that most of the time backend developers use OOP to solve their problems because it makes things lot more easier.
I know many frontend deveoplers using Class based components for creating web applications just because of client's requirement or they are comfortable with class based components.
I think it's somebody's choice at the end we have to create a bug free application.
I do agree with Pieter, OOP is completely unnecessary in React and using TS has nothing to do with OOP...
I appreciate everyone's point of view. I am a Frontend engineer and I have to coordinate with backend developers most of the time and I have noted that most of the time backend developers use OOP to solve their problems because it makes things lot more easier.
I know many frontend deveoplers using Class based components for creating web applications just because of client's requirement or they are comfortable with class based components.
I think it's somebody's choice at the end we have to create a bug free application.
Pieter, OOP is not necessary, React is not necessary either, lol
By the way, I have stopped reading the article since the first example that does not even make use of the factory method, it is there for nothing.
It seems that Factory Method has been fixed. Welcome.