Skip to content

Conversation

@kanzariya-maulik
Copy link

@kanzariya-maulik kanzariya-maulik commented Oct 30, 2025

Description

Motivation

Hooks like useQueue, useList, and useSet provide developers with convenient, declarative wrappers for common data structures.
useStack completes this family by adding LIFO support, which is particularly useful for:

Undo/redo systems

Navigation history management

Game or simulation states

Expression parsing or algorithm visualization

Implimentation way

  • Built using React’s useState

  • Immutable updates for React compatibility

  • Fully typed with TypeScript

Checklist

  • Read the Contributing Guide
  • Perform a code self-review
  • Comment the code, particularly in hard-to-understand areas
  • Add documentation
  • Add hook's story at Storybook
  • Cover changes with tests
  • Ensure the test suite passes (yarn test)
  • Provide 100% tests coverage
  • Make sure code lints (yarn lint). Fix it with yarn lint:fix in case of failure.
  • Make sure types are fine (yarn lint:types).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant