diff --git a/examples/portfolio/src/components/MainHead.astro b/examples/portfolio/src/components/MainHead.astro index 181da7d28d..2dae9ac046 100644 --- a/examples/portfolio/src/components/MainHead.astro +++ b/examples/portfolio/src/components/MainHead.astro @@ -1,9 +1,16 @@ --- -const { title = 'Jeanine White: Personal Site' } = Astro.props; ---- +export interface Props { + title: string; + description?: string[]; +} +export function __state({props}: {props: Props}) { + return {description: props.description || 'This is the default site descrition.'}; +} +--- -