npm

Does your artifact manager get in the way? Join us on Oct. 8 at 10am PT, to discuss how npm can help.Sign up »

copyright-update

1.5.3 • Public • Published

copyright-update

A simple Reactjs component that updates copyright year.

Report bug · Request feature


Table of contents

Quick start

A couple quick start options are available:

  • Install with npm: npm i copyright-update.
  • Install with yarn: yarn add copyright-update.

Status

copyright-update version dependencies status devDependencies status npm version

What's included

copyright-update is a simple Reactjs component. Within the download you'll find the following directories and files:

copyright-update
└── src/
    └── index.js

Usage

Install the package.

npm i copyright-update

In the example below, we are going to import the copyright-update component into a Footer.

import React, { Component } from 'react';

class CopyrightUpdate extends Component {
  render() {
    return (
      <div 
        className={`copyright-update ${this.props.className}`}
        style={this.props.style}
        >
        &copy; {new Date().getFullYear()}
      </div>
    );
  }
}
export default CopyrightUpdate;

Now simply style the component using the provided CSS classname .copyright-update.

.copyright-update {
  display: inline-block;
  margin-left: .5rem;
}

Quick links

Maintainers

Guy Lepage

Follow on Twitter Github npm Medium LinkedIn

License

By contributing your code, you agree to license your contribution under the MIT License.

install

npm i copyright-update

Downloadsweekly downloads

48

version

1.5.3

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability