3 ms·
That's not without reason, javascript class is infamous for being weird with 'this' gotchas, and class is 2nd class citizen there (not as good / powerful as one
by fendy3002 6y ago
That's not without reason, javascript class is infamous for being weird with 'this' gotchas, and class is 2nd class citizen there (not as good / powerful as one in java). Meanwhile function based view is neat.
However without hooks, only class based component has side effects and lifecycle, so you like it, then made switch to hooks because it's neat.