2 ms·
My coworker showed me that hooks are just functions, so you can still pull apart your functional components hooks into a bunch of imported or defined functions.
by sb8244 7y ago
My coworker showed me that hooks are just functions, so you can still pull apart your functional components hooks into a bunch of imported or defined functions.
Of course that doesn't help if you're still pulling in a lot of hooks, since it's 1 line per hook minimum.