React component for the dayjs date library.
npm install react-dayjsReact component for the [dayjs][dayjs] date library.
!Node CI  !Snyk Vulnerabilities for npm package !npm 
* Installing
* Quick Start
* Documentation
* Contributing
* License
Use npm to install react-dayjs as well as its peer dependency, dayjs.
``bash`
npm install --save dayjs react-dayjs
Then, import the package into your React project:
`jsx
import React from 'react';
import DayJS from 'react-dayjs';
export default class Application extends React.Component {
...
}
`
component to a component:`jsx
import React from 'react';
import DayJS from 'react-dayjs';export default class MyComponent extends React.Component {
render() {
const date = "2000-01-31T12:59-0500";
return (
{ date }
);
}
}
`This will output:
`html
``Read [DOCUMENTATION.md][documentation] to view the technical details of the component and its props.
Interested in contributing? Read [CONTRIBUTING.md][contributing] to learn more.
This software is released under the MIT license. See [LICENSE.md][license] for more details.
[contributing]: https://github.com/devshawn/react-dayjs/blob/master/CONTRIBUTING.md
[dayjs]: https://github.com/xx45/dayjs
[documentation]: https://github.com/devshawn/react-dayjs/blob/master/DOCUMENTATION.md
[license]: https://github.com/devshawn/react-dayjs/blob/master/LICENSE.md