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?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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.
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?