summaryrefslogtreecommitdiff
path: root/packages/integrations/react/static-html.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/integrations/react/static-html.js')
-rw-r--r--packages/integrations/react/static-html.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/packages/integrations/react/static-html.js b/packages/integrations/react/static-html.js
index ecd76ae9b..9589aaed8 100644
--- a/packages/integrations/react/static-html.js
+++ b/packages/integrations/react/static-html.js
@@ -7,9 +7,10 @@ import { createElement as h } from 'react';
* As a bonus, we can signal to React 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', {
+ return h('astro-slot', {
+ name,
suppressHydrationWarning: true,
dangerouslySetInnerHTML: { __html: value },
});