@ailjc/usetime
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

获取本地时间

Examples

import { useTime } from '@ailjc/usetime';

const DataHeaderTime = () => {
  const { time } = useTime();

  return <span className="header-time">当前时间:{time}</span>;
};

export default DataHeaderTime;

Readme

Keywords

none

Package Sidebar

Install

npm i @ailjc/usetime

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

3.94 kB

Total Files

6

Last publish

Collaborators

  • lujingce