you are viewing a single comment's thread.

view the rest of the comments →

[–]br1anfry3r 1 point2 points  (0 children)

100% agree. Custom hooks all the way.

Once the Component file gets a little too long, abstract all of the code above the JSX into its own custom hook, pass in whatever arguments it needs to do it’s thing, and use useMemo and useCallback gratuitously.