Appearance
保存上一次渲染时状态的 Hook。
import { usePrevious } from '@base-web-kits/base-tools-react'; const previous = usePrevious(count);
state (any)
shouldUpdate (Function)
(any)