@utilityjs/use-get-latest (npm): A React hook that stores & updates `ref.current` with the most recent value.
Keywords: javascript|typescript|react|react hook|ref|useref|update ref|latest ref value|algorithms|datastructure|reactjs|utilities|utility