npm.io
2.1.2 • Published 1 year ago

@antdp/document-title

Licence
MIT
Version
2.1.2
Deps
1
Size
5 kB
Vulns
1
Weekly
0
Stars
18

@antdp/document-title

npm npm download

设置页面标题。

如果需要通过当前组件方式渲染 title,配 title: false 可禁用内置的 title 渲染机制,@antdp/config 默认配置 title: false

Installation

npm i @antdp/document-title --save

Basic Usage

import React from 'react';
import DocumentTitle from '@antdp/document-title';

const Demo = () => (
  <DocumentTitle title="展示浏览器标题 - 首页">
    <h1>Home, sweet home.</h1>
  </DocumentTitle>
);

export default Demo

Keywords