Skip to content

Instantly share code, notes, and snippets.

@PierreCavalet
Created May 24, 2019 08:02
Show Gist options
  • Save PierreCavalet/c6d364afc9f4db125a5ab7f14fdc1af0 to your computer and use it in GitHub Desktop.
Save PierreCavalet/c6d364afc9f4db125a5ab7f14fdc1af0 to your computer and use it in GitHub Desktop.
Heavy
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