
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
react-mailchimp-form
Advanced tools
It provides an easy-to configure component to add a mailchimp form to your react project
npm install react-mailchimp-form
Be sure to include the --save option to add this as a dependency in your application's package.json
First you have to configure your Mailchimp account:
The action URL will look like this:
https://<YOUR-USER>.us16.list-manage.com/subscribe/post?u=XXXXXXXXXXXXX&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&id=XXXXXX'
fields={[
{
name: 'EMAIL',
placeholder: 'Email',
type: 'email',
required: true
}
]}
/>
);
}
}
export default App;
You can add all the fields you need for your Mailchimp form, just remember you have to configure them on "Settings > List Fields"
Personalize or change the message language by default
Add a personalized class to personalize your form
<Mailchimp
action='https://<YOUR-USER>.us16.list-manage.com/subscribe/post?u=XXXXXXXXXXXXX&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>'
/>
Check here: react-mailchimp-form
If someone wants to add or improve something, I invite you to collaborate directly in this repository: react-mailchimp-form
React-mailchimp-form is released under the MIT License.
FAQs
React subscribe form for Mailchimp
The npm package react-mailchimp-form receives a total of 202 weekly downloads. As such, react-mailchimp-form popularity was classified as not popular.
We found that react-mailchimp-form demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.