Add typescript-starter

This commit is contained in:
Shu Uesugi
2020-04-06 19:57:49 -07:00
parent 0f3f964494
commit dda37e0064
16 changed files with 407 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
import { parseISO, format } from 'date-fns'
export default function Date({ dateString }) {
const date = parseISO(dateString)
return <time dateTime={dateString}>{format(date, 'LLLL d, yyyy')}</time>
}