News for hackers. Stuff that matters.
Re:Common mistakes writing React components with hooks by fendy3002 on Tuesday July 21, 2020 @07:09PM (#23911897)
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.

There are no comments on this comment yet.