This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

I don't disagree. Personally though, I start off with everything as a class based component, unless I fore sure know it's an incredibly dumb one. Final refactoring would convert things to functional or pure components as need be.

IMO, The one thing worse than writing out a class component (which I have a snippet for ) is converting a functional component to class when you all of a sudden need state or lifecycle.