A react component to create and display a mailto link.
npm install react-mailto> A react component to create and display a mailto link.
- Install with NPM - npm install --save react-mailto
``javascript
var React = require('react');
var Mailto = require('react-mailto');
var Component = React.createClass({
render: function () {
return (
Email me!
);
}
});
`
Property | Type | Argument | Default | Description
----------|-----------|--------------|-----------|------------
email | string | | null | email address of the intended recipient.boolean
obfuscate | | | false | show the email address in the status bar.object
headers | | | null | any standard mail header fields. The most commonly-used of these are "subject", "cc", and "body" (which is not a true header field, but allows you to specify a short content message for the new email).
react-mailto is built using ES6. Run the following task to compile the src/ into dist/.
`bash``
npm run build