A react-component to format and display a copyright notice.
- Install with NPM -
npm install --save react-copyright
var React = require('react');
var Copyright = require('react-copyright');
var Component = React.createClass({
render: function () {
return (
<Copyright>Jason Bellamy</Copyright>
);
}
});
Property | Type | Argument | Values | Default | Description |
---|---|---|---|---|---|
date | string |
<optional> |
RFC2822/ISO8601 | today |
RFC2822/ISO8601 format. |
format | string |
<optional> |
numeric , 2-digit |
numeric |
representation format. |
position | string |
<optional> |
pre , post |
pre |
placement of the copyright year. |
react-copyright is built using ES6. Run the following task to compile the src/
into dist/
.
npm run build
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.
Copyright (c) 2015 Jason Bellamy
Licensed under the MIT license.