StateNewuseIsFirstRenderDetermines whether the current render is the initial mount, returning true on the first render and false on subsequent re-renders.trueInitialfalseRe-render
StateNewuseStateHistoryProvides state management with undo, redo, and time-travel capabilities through a chronological history of state snapshots.Current state301234Undopointer: 3Redo
StateNewuseMapA reactive Map instance synchronized with React state that triggers re-renders on mutation.Map<K, V>"theme""dark""count"42"auth"truesize: 3
StateNewuseListStateManages array state with declarative helper methods for insertion, removal, reordering, and item transformations.useListStateCRUD / Reorder
StateNewuseDisclosureManages boolean open/close state for modals, dialogs, drawers, and collapsibles with memoized handlers.dialog.modalclose()openisOpen: true