Function useFiveState

  • Five Vue Hooks: Five 的目标状态

    Returns [curState: Ref<State>, setState: ((state: Partial<State> | ((prevState: State) => Partial<State>), immediately?: boolean, userAction?: boolean) => void)]

    [ currentState: Five 的目标状态, setState: 设置 Five 的状态 ]

    const [ state, setState ] = useFiveState;