Description
react-moment is a React component for displaying and formatting dates and times using the moment date library. It lets you render a date in a chosen format, show a relative time such as two hours ago, format durations, and handle time zones. The README covers installation, including a CDN option, the 2.0 series, duration formatting, time zone support, a quick start, and hooks. However, the README notes that the moment library is now a legacy project and is no longer maintained, so this component is no longer maintained beyond critical bug fixes. For new projects, the README's note suggests choosing a date library that is still actively developed, while existing projects can keep using it. The repository is on GitHub. It suits teams that already use moment in a React app and need a stable component, but it should not be the start of a new date-handling layer.…
Highlights
- Renders dates and relative times in React
- Duration formatting and time zone support
- Hooks and a quick start
- Installation via npm or CDN
Ratings & Reviews
No ratings yet
Be the first to rate react-moment.
People also visit

react-relative-time
React Component for rendering relative dates as <time> HTML5 elements
react-moment FAQ
What is react-moment?
A React component for displaying and formatting dates and times with the moment library.
Is it still maintained?
The README says moment is legacy and this component only receives critical bug fixes.
Should I use it in a new project?
The README suggests choosing an actively developed date library for new work.
What does it support?
Formatting, relative times, duration formatting, time zones and hooks.
What are the best react-moment alternatives?
Popular alternatives to react-moment include react-relative-time, react-date-range and timeago-react. See all react-moment alternatives
















