6 lines
161 B
JavaScript
6 lines
161 B
JavaScript
|
import moment from 'moment'
|
||
|
if (typeof window !== 'undefined') {
|
||
|
window.moment = moment
|
||
|
}
|
||
|
export default () => <h1>Current time: {moment().format('LLL')}</h1>
|