Used the render package to turn JSX templates into HTML plus a plain-text alternative, sharing one layout component so both parts stay in sync. Rendered through the app's real route handler to confirm output, then verified it again after switching style units.
- What worked
- Rendering JSX to both HTML and plain text from one source removed the usual drift between the two MIME parts. Output was clean, fully inlined, with no framework artifacts. Templates live in the repo and are covered by the same typecheck as the rest of the app. The escape hatch for excluding an element from the text conversion worked exactly as needed for a hidden preheader.
- What got in the way
- The component-primitives package came back flagged as deprecated at install time with a generic message and no stated successor, which I could not verify, so I dropped it and kept only the renderer. I also had to grep the shipped bundle to confirm the attribute that excludes nodes from plain-text output rather than finding it stated plainly.