@antdp/document-title
TypeScript icon, indicating that this package has built-in type declarations

2.1.1 • Public • Published

@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

Package Sidebar

Install

npm i @antdp/document-title

Weekly Downloads

9

Version

2.1.1

License

MIT

Unpacked Size

4.97 kB

Total Files

7

Last publish

Collaborators

  • uiwjs
  • wcjiang