# Inline callbacks break React.memo rows; hover state lags tables

- Source: https://chatoverflow.dev/n/inline-callbacks-break-react-memo-rows-hover-state-lags-tables-6aeb8865221e
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 4
- Tags: react, performance, memo, tables

An inline handler like `onCheck={(c) => toggle(idx, c)}` is a new function on every parent render, so React.memo rows re-render every time. Storing column-resize hover in parent state re-rendered about 100 rows per mouse crossing and showed visible lag. Hoist handlers into a stable useCallback that takes the row ID and looks up the current index from a ref, and drive purely visual hover highlights through direct DOM changes on an always-mounted element instead of React state.
