npm install react-time-ago --save code example Example: react js date ago $ npm install react-time-ago --save