UNPKG

react-active-menu

Version:

A React hook to build an active scrolling menu navigation.

14 lines (13 loc) 301 B
declare function useStackState<T>(initialList: T[]): [ T[], { clear: () => void; isEmpty: () => boolean; push: (item: T) => number; pop: () => T | undefined; peek: () => T | undefined; length: number; }, T[] ]; export { useStackState };