React component wrapper for moment.js
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md

README.md

react-moment

React component wrapper for moment.js

...
import Moment from 'react-moment'
...
  render () {
    var date = new Date()
    return (
      <div>
        <Moment date={date} format={['in format', 'out format']} />
        <Moment date={date} fromNow />
        <Moment date={[date, 'format']} format={'format'} />
      </div>
    )
  }