Newsletter com HTMX e Deco Records
For this tutorial, we created a “newsletter” table with columnsid
,confirmed_at
,confirmation_key
.
newsletterSubscribe.tsx
: Newsletter subscription form (email field) +
inline action that performs the
process of including the email in the database and sending the email using
the Resend app. Main components of the section:
newsletterConfirmation.tsx
: Section to be included on the /confirm
page
of the site so that users can confirm the subscription and receive positive
feedback. The main use of this section was the use of the loader to process
the data: