I like how React hooks centralize and encapsulate a chunk of reusable logic


I like how React hooks centralize and encapsulate a chunk of reusable logic.

And I like how the hook provides a nice clear name that documents intent.

Here's an example from today. The hook resets a table's scroll position after the table reloads.

View original on X