DEV Community

Discussion on: Design Patterns in JavaScript

 
degesis profile image
PovilasB • Edited

I do agree with Pieter, OOP is completely unnecessary in React and using TS has nothing to do with OOP...

Thread Thread
 
zeeshanhshaheen profile image
Zeeshan Haider Shaheen • Edited

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.

Thread Thread
 
jcarlosweb profile image
Carlos Campos

Pieter, OOP is not necessary, React is not necessary either, lol

Thread Thread
 
jcarlosweb profile image
Carlos Campos

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.

Thread Thread
 
jcarlosweb profile image
Carlos Campos

It seems that Factory Method has been fixed. Welcome.