@rooks/use-fresh-ref (npm): Avoid stale state in callbacks with this hook. Auto updates values using a ref.
Keywords: use|react|hooks|rooks|react-hooks.org|hook|react-hook|react-hooks|reactjs|typescript