Created
May 24, 2019 08:02
-
-
Save PierreCavalet/c6d364afc9f4db125a5ab7f14fdc1af0 to your computer and use it in GitHub Desktop.
Heavy
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react' | |
import _ from 'lodash' | |
import moment from 'moment' | |
export default function Heavy() { | |
const now = moment().format('YYYY-MM-DD') | |
const textArray = ['The', 'date', 'is'] | |
const text = _.join(textArray, '') | |
return ( | |
<div> | |
{text} - {now} | |
</div> | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment