The this.setstate spamming and lack of using something like the PureComponent class show that the author either is bad at coding in class based react or intentionally making it look worse.
Disclaimer: got nothing against hooks but hate false examples.