diff options
Diffstat (limited to 'packages/integrations/preact/static-html.js')
-rw-r--r-- | packages/integrations/preact/static-html.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/integrations/preact/static-html.js b/packages/integrations/preact/static-html.js index 9af8002a7..7e964ef06 100644 --- a/packages/integrations/preact/static-html.js +++ b/packages/integrations/preact/static-html.js @@ -7,9 +7,9 @@ import { h } from 'preact'; * As a bonus, we can signal to Preact that this subtree is * entirely static and will never change via `shouldComponentUpdate`. */ -const StaticHtml = ({ value }) => { +const StaticHtml = ({ value, name }) => { if (!value) return null; - return h('astro-fragment', { dangerouslySetInnerHTML: { __html: value } }); + return h('astro-slot', { name, dangerouslySetInnerHTML: { __html: value } }); }; /** |