All Projects → gndx → react-mailchimp-form

gndx / react-mailchimp-form

Licence: MIT License
React subscribe form for Mailchimp

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to react-mailchimp-form

Gatsby Plugin Mailchimp
A simple, lightweight Gatsby plugin to subscribe new email addresses to your Mailchimp list
Stars: ✭ 125 (+145.1%)
Mutual labels:  mailchimp
mailchimp-marketing-php
The official PHP client library for the Mailchimp Marketing API
Stars: ✭ 88 (+72.55%)
Mutual labels:  mailchimp
mailchimp
Mailchimp Integration in TYPO3 CMS
Stars: ✭ 15 (-70.59%)
Mutual labels:  mailchimp
Mailchimp Api
Super-simple, minimum abstraction MailChimp API v3 wrapper, in PHP
Stars: ✭ 1,977 (+3776.47%)
Mutual labels:  mailchimp
Builderbook
Open source web application to learn JS stack: React, Material-UI, Next.js, Node.js, Express.js, Mongoose, MongoDB database.
Stars: ✭ 3,015 (+5811.76%)
Mutual labels:  mailchimp
mailchimp-marketing-node
The official Node.js client library for the Mailchimp Marketing API
Stars: ✭ 106 (+107.84%)
Mutual labels:  mailchimp
Mailchimp For Wordpress
The #1 Mailchimp plugin for WordPress
Stars: ✭ 111 (+117.65%)
Mutual labels:  mailchimp
mailchimp
A basic Elixir wrapper for version 3 of the MailChimp API
Stars: ✭ 42 (-17.65%)
Mutual labels:  mailchimp
Mailchimp.net
Mail Chimp 3.0 Wrapper
Stars: ✭ 248 (+386.27%)
Mutual labels:  mailchimp
mailchimp-mailer
Provides Mailchimp integration for Symfony Mailer
Stars: ✭ 20 (-60.78%)
Mutual labels:  mailchimp
React Mailchimp Subscribe
React subscribe form for Mailchimp.
Stars: ✭ 170 (+233.33%)
Mutual labels:  mailchimp
Saas
Build your own SaaS business with SaaS boilerplate. Productive stack: React, Material-UI, Next, MobX, WebSockets, Express, Node, Mongoose, MongoDB. Written with TypeScript.
Stars: ✭ 2,720 (+5233.33%)
Mutual labels:  mailchimp
mailchimp-transactional-node
The official Node.js client library for the Mailchimp Transactional API
Stars: ✭ 30 (-41.18%)
Mutual labels:  mailchimp
Trado
Trado is a lightweight, easy to use ecommerce platform; designed to allow developers to quickly deploy a premium ecommerce store for their business
Stars: ✭ 149 (+192.16%)
Mutual labels:  mailchimp
wemail
Send Affordable Bulk Email Campaign Through WordPress
Stars: ✭ 19 (-62.75%)
Mutual labels:  mailchimp
Mailchimp Subscribe Craft
Simple Craft plugin for subscribing to a MailChimp list.
Stars: ✭ 117 (+129.41%)
Mutual labels:  mailchimp
cf-mailchimp
ColdFusion wrapper for the MailChimp 3.0 API
Stars: ✭ 17 (-66.67%)
Mutual labels:  mailchimp
mailchimp-transactional-python
The official Python client library for the Mailchimp Transactional API
Stars: ✭ 26 (-49.02%)
Mutual labels:  mailchimp
mailchimp-transactional-php
The official PHP client library for the Mailchimp Transactional API
Stars: ✭ 24 (-52.94%)
Mutual labels:  mailchimp
mailchimp-marketing-python
The official Python client library for the Mailchimp Marketing API
Stars: ✭ 66 (+29.41%)
Mutual labels:  mailchimp

react-mailchimp-form

It provides an easy-to configure component to add a mailchimp form to your react project

Install

npm install react-mailchimp-form

Be sure to include the --save option to add this as a dependency in your application's package.json

Usage

First you have to configure your Mailchimp account:

  1. Create a new account or use an existing one
  2. Add a new list or use an existing one
  3. Personalize the fields on your list on "Settings > List Fieds"
  4. Copy the HTML and extract the action from "Signup Forms > Embedded forms"

The action URL will look like this:

https://<YOUR-USER>.us16.list-manage.com/subscribe/post?u=XXXXXXXXXXXXX&amp;id=XXXXXX

We will use this URL to configure the component

import React, { Component } from 'react';
// import the component
import Mailchimp from 'react-mailchimp-form'

class App extends Component {
  render() {
    return (
        <Mailchimp
        action='https://<YOUR-USER>.us16.list-manage.com/subscribe/post?u=XXXXXXXXXXXXX&amp;id=XXXXXX'
        fields={[
          {
            name: 'EMAIL',
            placeholder: 'Email',
            type: 'email',
            required: true
          }
        ]}
        />
    );
  }
}

export default App;

Options

Multiple fields

You can add all the fields you need for your Mailchimp form, just remember you have to configure them on "Settings > List Fields"

Messages

Personalize or change the message language by default

ClassName

Add a personalized class to personalize your form

  <Mailchimp
  action='https://<YOUR-USER>.us16.list-manage.com/subscribe/post?u=XXXXXXXXXXXXX&amp;id=XXXXXX' 
  
  //Adding multiple fields:
  fields={[
    {
      name: 'EMAIL',
      placeholder: 'Email',
      type: 'email',
      required: true
    },
    {
      name: 'FNAME',
      placeholder: 'name',
      type: 'text',
      required: true
    }
  ]}
  // Change predetermined language
  messages = {
    {
      sending: "Sending...",
      success: "Thank you for subscribing!",
      error: "An unexpected internal error has occurred.",
      empty: "You must write an e-mail.",
      duplicate: "Too many subscribe attempts for this email address",
      button: "Subscribe!"
    }
  }
  // Add a personalized class
  className='<YOUR_CLASSNAME>'
  />

Demo

Check here: react-mailchimp-form

Contributing

If someone wants to add or improve something, I invite you to collaborate directly in this repository: react-mailchimp-form

License

React-mailchimp-form is released under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].