Urgent.News

What's breaking now, across thousands of outlets.

Tech

Add a drag and drop email builder to your React app (full tutorial)

Your users want to design their own emails. You don't want to spend months building an editor. In this post we add a complete drag and drop email builder to a fresh Vite + React app, step by step. It's the written version of a 9 minute video where every step is filmed for real. ๐ŸŽฅ Watch the video: https://www.linkedin.com/feed/update/urn:li:activity:7519114078284562432 What you need: a React appโ€ฆ

Adding a drag and drop email builder to your React app can be accomplished in just a few steps. This tutorial demonstrates how to implement a complete drag and drop email builder in a fresh Vite + React app, similar to a short video that walks through each step.

To begin, you'll need a React app (using Vite in this example) and Node.js version 18 or newer. Start by creating an account and obtaining a token on MailKaro.com. Sign up using a passwordless method that requires a one-time code sent to your email, and ensure only one device can be signed in at a time. After creating a token, you'll receive two keys: a publishable key for your frontend and a secret key for your server-side code.

Next, install the `react-email-craft` package and add your publishable key to a `.env.local` file. Render the editor by importing `EmailEditor` from `react-email-craft` and setting the publishable key in the `token` prop. The editor will occupy the entire page, with blocks and settings on the right side.

To save and reopen a design, add a ref and two buttons for saving and opening the email. Use `exportHtml` to get the design and HTML, and store the design in local storage for later use.

Merge tags can be added to the editor by specifying a label, value, and sample for each tag. In a text block, users can insert a merge tag, which appears as a labeled pill indicating where each field should go.

Finally, render email-safe HTML on your server using the `email-craft-sdk` and `express`. Install these packages and set up an Express app to handle email rendering. Use the `renderDesign` and `renderMjml` functions to generate HTML from the saved design, ensuring it's safe for email delivery.

Written by urgent.news from Dev.to's reporting โ€” not their text. Machine-written โ€” may contain errors; check the original before relying on it.

Read the original at dev.to โ†’

More in Tech

Tesla Begins Production of Optimus Humanoid Robots in California

Originally published on PkLavc . Confirmed facts Tesla has officially commenced the production of its Optimus humanoid robots.

  • Tesla begins producing Optimus humanoid robots at Fremont factory.
  • First production-quality units mark shift from R&D to manufacturing.
  • Manufacturing process optimized for commercial deployment.

Which emails should an unsubscribe stop? A suppression rulebook for your app

After my transactional email checklist , a reader left a comment I keep thinking about. They had to decide what happens when they reply to someone's support message, and that person has switched allโ€ฆ

  • Unsubscribe stops marketing emails, not transactional ones
  • Hard bounces require immediate suppression of all emails
  • Spam complaints halt all emails, including transactional

Gas Optimization Audit: Uniswap V4

Gas Optimization Audit: Uniswap V4 Target Protocol : Uniswap V4 (TVL: $1467.9M) Gasโ€‘Optimization Audit Report Protocol: Uniswap V4 (TVL โ‰ˆ $1.47 B across Ethereum & L2s) Audit Type: Gasโ€‘Efficiency &โ€ฆ

  • Uniswap V4 audit conducted in October 2026 to improve gas efficiency
  • Estimated 20-25% gas reduction could save $0.45 million in fees annually

How to Answer "Tell Me About Yourself" Without Sounding Rehearsed

Originally published at https://easedit.co/blog/how-to-answer-tell-me-about-yourself How to Answer "Tell Me About Yourself" Without Sounding Rehearsed The interviewer leans back and says it.

  • Present situation with concrete achievement
  • Highlight 2-3 role-relevant experiences
  • Explain why you're excited about this specific role

More from Thursday 22 October โ†’