---
title: "Discussion on \"Svelte Snippets: Reuse Markup Without a New Component\" | Hashnode"
description: "Discussion on \"Svelte Snippets: Reuse Markup Without a New Component\". You have a card layout that appears twice in the same component: once wrapped in a link, once bare. The markup is identical apart from the wrapper. For years the Svelte answer was to extract Card.svel"
url: "https://hashnode.com/posts/svelte-snippets-reuse-markup-without-a-new-component/6a9fdf22c8bc96572c005b8e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Svelte Snippets: Reuse Markup Without a New Component](https://grimicorn.hashnode.dev/svelte-snippets-reuse-markup-without-a-new-component?utm_source=hashnode&utm_medium=feed)

You have a card layout that appears twice in the same component: once wrapped in a link, once bare. The markup is identical apart from the wrapper. For years the Svelte answer was to extract Card.svel

Sep 8 · 4 min read · grimicorn.hashnode.dev  
Read the article

-   [#svelte](https://hashnode.com/tag/svelte)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#typescript](https://hashnode.com/tag/typescript)

## Written by

[Dan Holloran](https://hashnode.com/@grimicorn)

@grimicorn · St. Louis, MO

  
[View profile](https://hashnode.com/@grimicorn)

Full-stack web developer since 2012 · Vue · React · Laravel · danholloran.me

Senior Full Stack Developer with 14+ years building performant, scalable web applications. Passionate about architecture, mentorship, and finding the right tool for the job.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
