ComponentsButton Lead
Collect emails and automatically save them in the database. Perfect for a waitlist (if your product isn't ready yet) or a lead generation popup.
It calls the /api/lead/route.js
API route to store the lead in the database.
A database is required to use this component.
/components/Hero.js
1import ButtonLead from "./ButtonLead";
2
3const Hero = () => {
4 return (
5 <>
6 <section>
7 ...
8 <ButtonLead />
9 ...
10 </section>
11 </>
12 );
13};
14
15export default Hero;
- You can export the leads automatically using Pipedream.