Skip to content

Latest commit

 

History

History
24 lines (18 loc) · 385 Bytes

index.md

File metadata and controls

24 lines (18 loc) · 385 Bytes

useTitle

用于管理页面标题的 Hook。

Usage

import { useTitle } from 'v3-use'
const [title, setTitle] = useTitle()

Reference

Type Declarations

export interface Options {
  restoreOnUnmount: boolean
}
export declare function useTitle(
  title?: string,
  options?: Options
): [Ref<string>, (value: string | ((c: string) => string)) => void]