View on Github
My useArray hook is built using a number of useCallback hooks to manipulate the state of the array.