react-mailigen
A react component for subscribing emails to a mailigen list
Last updated 2 years ago by aulneau .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install react-mailigen 
SYNC missed versions from official npm registry.

React Mailigen

This is a renderless react component to help you subscribe users to your mailigen lists.

Getting started

Installation

yarn add react-mailigen

Example

import Mailigen from 'react-mailigen';

<Mailigen email={this.state.email}>
  {({loading, error, success, doSubscribe}) =>
    (<form onSubmit={doSubscribe}>
        <!-- form content -->
    </form>)
  }
</Mailigen>

Props

The component takes the following props:

  • email: The email address you want to add to your list
  • from: The email address you want to add to your list
  • id: (optional) the List ID you want the emails to be added to (defaults to: process.env.MAILIGEN_LIST)
  • apiKey: (optional) the apiKey for your account (defaults to: process.env.MAILIGEN_API_KEY)
  • options: any other options you'd like to pass to your list

See also

  • mailigen-js - This simple library gives you the ability to add email to your newsletter lists on Mailigen.

Current Tags

  • 1.0.2                                ...           latest (2 years ago)

3 Versions

  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (3)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |