UNPKG

@rtbjs/use-state

Version:

`@rtbjs/use-state` is a state management tool that can act as a local state and be easily turned into a global redux state. It is an innovative approach to state management that combines the advantages of both React's useState and Redux's state management

12 lines (11 loc) 455 B
import React from 'react'; import { DataNode } from 'antd/es/tree'; import { ReduxHistoryItem } from '../../redux/api/types'; declare const useReduxHistorySearch: (root: ReduxHistoryItem | null | undefined) => { onExpand: (newExpandedKeys: React.Key[]) => void; expandedKeys: React.Key[]; autoExpandParent: boolean; treeData: DataNode[]; onChange: (e: React.ChangeEvent<HTMLInputElement>) => void; }; export { useReduxHistorySearch };