UNPKG

desmy-react

Version:

Introducing an easy-to-use, lightning-fast React.js component that streamlines your development process. Our solution prioritizes simplicity, speed, and optimization, making it a breeze to build projects in React.

20 lines (19 loc) 540 B
import { default as React } from 'react'; type Props = { timestamp: string | number | Date; className?: string; }; type State = { timeAgo: string; }; declare class DesmyTimeAgo extends React.Component<Props, State> { intervalId: number | null; constructor(props: Props); componentDidMount(): void; componentDidUpdate(prevProps: Props): void; componentWillUnmount(): void; startInterval(): void; clearInterval(): void; render(): import("react/jsx-runtime").JSX.Element; } export { DesmyTimeAgo };