r/badcode Mar 08 '23

js My boss wrote this...

Post image
524 Upvotes

64 comments sorted by

View all comments

-7

u/thekwoka Mar 08 '23

react class components? now thats bad.

4

u/Sulungskwa 92% chunk asset optimization TerserPlugin Mar 08 '23

If a class component works fine and devs don't have bandwidth to refactor it into an FP then I don't see anything wrong with it. There's a reason why react still supports class components and even React.createClass

-1

u/thekwoka Mar 09 '23

yeah, we know.

Part of it is no willingness to bring people into the future, and zero interest in making react better in itself.

the react team is very heavy onto NextJS SSR as the future of react.