Skip to content

StartupQuickstart/react-dayjs

 
 

Repository files navigation

react-dayjs

React component for the dayjs date library.

npm MIT License

Installing

Use npm to install react-dayjs as well as its peer dependency, dayjs.

npm install --save dayjs @startupquickstart/react-dayjs

Then, import the package into your React project:

import React from 'react';
import DayJS from '@startupquickstart/react-dayjs';

export default class Application extends React.Component {
    ...
}

Quick Start

Add the DayJS component to a component:

import React from 'react';
import DayJS from '@startupquickstart/react-dayjs';

export default class MyComponent extends React.Component {
    render() {
        const date = "2000-01-31T12:59-0500";
        return (
            <DayJS>{ date }</DayJS>
        );
    }
}

This will output:

<time>2000-01-31T11:59:00-05:00</time>

Documentation

Read DOCUMENTATION.md to view the technical details of the component and its props.

Contributing

Interested in contributing? Read CONTRIBUTING.md to learn more.

License

This software is released under the MIT license. See LICENSE.md for more details.

About

⏰ React component for the dayjs date library.

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.0%
  • HTML 4.0%