1.0.3 • Published 9 months ago
@onwait/newsletter-subscribe v1.0.3
@onwait/newsletter-subscribe
A React component for adding newsletter subscription functionality to your website, powered by onwait.com.
Installation
npm install @onwait/newsletter-subscribe
Usage
Goto your onwait.com dashboard and get your domain id.
import { NewsletterSubscribe } from '@onwait/newsletter-subscribe';
const NewsletterSubscribeComponent = () => {
return <NewsletterSubscribe domainId="4478643f-2a81-45a5-8158-92769dfd08b0" />;
};
You can then see your newsletter subscription emails on the onwait.com dashboard under the "Newsletter" tab.
You can also manually call the public API if you want to use your own components.
More info on the public API can be found here.