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

1.0.0 • Public • Published

获取本地时间

Examples

import { useCurrentTime } from '@ailjc/usecurrenttime';

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

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

export default DataHeaderTime;

Readme

Keywords

none

Package Sidebar

Install

npm i @ailjc/usecurrenttime

Weekly Downloads

3

Version

1.0.0

License

MIT

Unpacked Size

4.08 kB

Total Files

6

Last publish

Collaborators

  • lujingce