diff options
Diffstat (limited to '')
-rw-r--r-- | packages/integrations/react/src/static-html.ts (renamed from packages/integrations/react/static-html.js) | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packages/integrations/react/static-html.js b/packages/integrations/react/src/static-html.ts index e319a40c7..010896196 100644 --- a/packages/integrations/react/static-html.js +++ b/packages/integrations/react/src/static-html.ts @@ -7,7 +7,11 @@ 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, name, hydrate = true }) => { +const StaticHtml = ({ + value, + name, + hydrate = true, +}: { value: string | null; name?: string; hydrate?: boolean }) => { if (!value) return null; const tagName = hydrate ? 'astro-slot' : 'astro-static-slot'; return h(tagName, { |