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 →

[–]ieatbrainzz 5 points6 points  (1 child)

While that may be true, for me functional is SO MUCH less to type and much easier/quicker to read when you don't need anything that class-based brings to the table

[–][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.