API Reference > @next-core/brick-kit > useApplyPageTitle
useApplyPageTitle() function
设置页面标题,将更新浏览器标签页显示的标题。
Signature:
export declare function useApplyPageTitle(pageTitle: string): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| pageTitle | string | 页面标题。 |
Returns:
void
Example
function MyReactComponent(props) {
useApplyPageTitle(props.pageTitle);
// ...
}