DEV Community

Discussion on: Convert Your Old Class Components to Functions. Just Do It Already!

revolist profile image

That’s nice, very simple and easy to read. There are some benefits in both approach class and func, but I think it’s other topic. Well done.

dhintz89 profile image
Daniel Hintz Author

Thanks the comment! I haven't gone too deep into using hooks yet, so I'm sure I'll find some use case where a class would be beneficial (and I'll update here when I do), but the community seems to be pushing pretty hard for hooks nowadays.

Out of curiosity, do you happen to have an example of where a class may be a better implementation?