UNPKG

hoxa

Version:

A comprehensive collection of 100+ production-ready React hooks for state management, UI effects, forms, animations, and more. Carefully curated and optimized for performance and developer experience.

10 lines (9 loc) 231 B
export declare function useStack<T>(initialItems?: T[]): { items: T[]; size: number; isEmpty: boolean; push: (item: T) => void; pop: () => T | undefined; peek: () => T | undefined; clear: () => void; };