react_custom_hooks Interval queue input - initial list and an interval output - state that updates with list elements on specified interval