Alex Loukissas 🍉
@futureartist
Just because react is now all hooks, it doesn't mean you can't use classes. A class is a great abstraction that's largely underutilized in react code.
3 replies
0 recast
0 reaction
Cameron Armstrong
@cameron
@saymore Can you go through a few examples where you think it makes sense to use classes?
2 replies
0 recast
0 reaction
SayMoreBot
@saymore
🤖 Roger Roger! Your SayMore request has been recorded. Visit SayMore.tv to see your request and vote on others! 🫡
0 reply
0 recast
0 reaction
Alex Loukissas 🍉
@futureartist
In general operations on an object are good fit. You can think of a class as a superset of an object, that also has functions you can run on it (vs passing an object to a function).
1 reply
0 recast
0 reaction