1 min readOct 15, 2020
I think it is more “modern” and common now to use functional component.
In some of my examples or websites I still use class component but that’s mostly for historical reason.
You should be able to achieve the same regardless of the types.
Your website is open source? I don’t have much time these days but can try to have a quick look.