The intent of this is to be able to pass in anything as the pubDate prop for components that need one, so that the pubdate can be formatted however we need. In addition to this I created a <Time> component to handle formatting dates/times more easily.
This means that when using, for example, a Teaser component, we should pass in the <Time> component as the pubDate prop, like:
The intent of this is to be able to pass in anything as the
pubDate
prop for components that need one, so that the pubdate can be formatted however we need. In addition to this I created a<Time>
component to handle formatting dates/times more easily.This means that when using, for example, a Teaser component, we should pass in the
<Time>
component as the pubDate prop, like: