Skip to main content

LifeCycle(生命周期相关)

useUnmount

State(状态相关)

useSetState

  • 本质用到了useState的同步更新机制

useBoolean

useToggle

useDebounce

useThrottle

useMap

useSet

usePrevious

useGetState

Effect(副作用相关)

useUpdateEffect

useDebounceFn

useThrottleFn

Advanced

useLatest

辅助方法

createUpdateEffect