1.0.0 • Published 3 years ago
@ailjc/usetime v1.0.0
获取本地时间
Examples
import { useTime } from '@ailjc/usetime';
const DataHeaderTime = () => {
const { time } = useTime();
return <span className="header-time">当前时间:{time}</span>;
};
export default DataHeaderTime;
1.0.0
3 years ago