
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
active-campaign-react
Advanced tools
Library that helps integrating Active Campaign Forms with React, based on the article - Better Way To Embed Active Campaign Forms Into React by Sara Gibbons
$ npm i --save active-campaign-react
# or
$ yarn add active-campaign-react
import { ActiveCampaignInputs, handleActiveCampaignSubmit } from 'active-campaign-react'
import { useForm } from 'react-hook-form'
export default function ContactForm() {
const { register, handleSubmit } = useForm()
const formId = 'yourFormId'
const onSubmit = async (data) => {
handleActiveCampaignSubmit(data, 'yourComapnySubdomain', formId)
}
return (
<form onSubmit={handleSubmit(onSubmit)}>
<ActiveCampaignInputs formId={formId} />
<input name="name" id="name" {...register('name', { required: true })} />
<input name="email" type="email" id="email" {...register('email', { required: true })} />
<button type="submit">Submit</button>
</form>
)
}
FAQs
Library that helps integrating Active Campaign Forms with React
We found that active-campaign-react 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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.