Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@hooks/queue

simmo9MIT0.1.0TypeScript support: included

React hook to manage a queue

react, hooks, useQueue, queue

readme

🎒 @hooks/queue

React hook to manage a queue

NPM version Travis License

Install

npm i @hooks/queue

Usage

useQueue

useQueue(initialState: Item[] = [])

Parameters

initialState: Item[] = []

Populate the queue with an array of initial values.