RecipeHeader.jsxtouch src/components/RecipeHeader.jsx
RecipeHeader.jsxexport default function RecipeHeader({
title,
tagline,
servings,
prepTime,
cookTime,
}) {
return (
<header>
<h1>{title}</h1>
{tagline && <p>{tagline}</p>}
<div>
<small>
Serves {servings} · Prep {prepTime} · Bake {cookTime}
</small>
</div>
</header>
);
}
RecipeSection.jsxexport default function RecipeSection({ title, children }) {
return (
<section>
<h2>{title}</h2>
{children}
</section>
);
}