You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

react-dayjs

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dayjs

React component for the dayjs date library.

0.3.2
latest
Source
npmnpm
Version published
Weekly downloads
25K
-12.72%
Maintainers
1
Weekly downloads
 
Created
Source

react-dayjs

React component for the dayjs date library.

Node CI codecov Snyk Vulnerabilities for npm package npm MIT License

Installing

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

npm install --save dayjs react-dayjs

Then, import the package into your React project:

import React from 'react';
import DayJS from '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 '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.

Keywords

dayjs

FAQs

Package last updated on 05 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts