Skip to content

Instantly share code, notes, and snippets.

View Imater's full-sized avatar
🏠
Working from home

Вецель Евгений Imater

🏠
Working from home
View GitHub Profile
import { useLocation, useHistory } from 'react-router-dom';
import { useEffect, useState } from 'react';
import moment, { Moment } from 'moment';
const isValidDate = (d: any): boolean => {
return moment(d).isValid();
};
type CustomPropertyKey = boolean | number[] | string[] | Date | PropertyKey;