| You realize you've just done exactly what the parent complained about right? - said it was bad - not provided any concrete details > they've become unmaintainable when reaching a certain size How? Did you start getting lot of hard to replicate bugs? Did you find authoring new components was made difficult by your heavy use of custom hooks that were actually not as generic as you thought when you wrote them? Did you find 3rd-party hooks had bugs? Did you find that useRef doesn't work like you think it does, and you can't mix and match useRef and useEffect? (ouch) What kind components are you writing that you find hooks are such a bad fit for? Be specific. (I'm not saying hooks are perfect; I've had all of the issues I listed happen to me, but it's still quicker to implement new features on a medium sized web app using hooks than with components in my experience; I work on 3 apps, and only one of them still uses components, and it's the most annoying to make changes too, simply because for simple business components & forms, hooks seem to reduce the amount of boiler plate, and flat out, reduce the lines of code; less code -> faster changes. It's not always that simple (see bugs comment above), but mostly... it is, in my experience: ...HOWEVER, what you've done is just wave your hands vaguely and fail to actually say anything except you don't like hooks) |
One of my favorite papers on it: https://github.com/papers-we-love/papers-we-love/blob/master...