3 ms·
Sure, I do define classes but that's because React expects it -- I don't actually use them as classes. My React classes would function the same as plain old obj
by ng12 10y ago
Sure, I do define classes but that's because React expects it -- I don't actually use them as classes. My React classes would function the same as plain old objects. I never use constructors, or inheritence, or new, or any of the features mentioned in this post.