Can I use a `class` constructor on a functional component?
Unanswered
Checkered Giant posted this in #help-forum
Checkered GiantOP
Hi, I have probably a stupid question, but here it goes: Can I use a
Is this a "good practice" or it is something I should avoid? In any case, is it working and I have no errors. Thanks for the feedback 🙂
class constructor on a functional component? What I mean is: I have a LoopingElement (a marquee animation) on the class constructor and then, I am using that class inside the functional component. I will paste here the code for a better understanding.Is this a "good practice" or it is something I should avoid? In any case, is it working and I have no errors. Thanks for the feedback 🙂