2 ms·
Same experience for my team a couple years back. We hated the idea of changing everything to hooks, then we actually started using them and fell in love. So muc
by willio58 4y ago
Same experience for my team a couple years back. We hated the idea of changing everything to hooks, then we actually started using them and fell in love. So much complexity fell out of our code we couldn't justify sticking with class components.
Having said that, there are some gotchas with hooks that aren't trivial and can make them difficult to use/understand without significant comments. But hey, what code doesn't fit that description?