@ailjc/usecurrenttime
v1.0.0
Published
获取当前时间
Downloads
4
Readme
获取本地时间
Examples
import { useCurrentTime } from '@ailjc/usecurrenttime';
const DataHeaderTime = () => {
const { time } = useCurrentTime();
return <span className="header-time">当前时间:{time}</span>;
};
export default DataHeaderTime;