feat(react): update to react 18

This commit is contained in:
Bastian Ike
2022-05-13 12:49:09 +02:00
committed by Bastian
parent f4c5c9edec
commit f28aad8bcb
35 changed files with 27496 additions and 16761 deletions

View File

@@ -5,7 +5,10 @@ interface Props {
alt?: string;
}
const HeroHeadline: React.FC<Props> = ({ children, alt }) => (
const HeroHeadline: React.FC<React.PropsWithChildren<Props>> = ({
children,
alt,
}) => (
<div className="hero-headline">
{children} <span className="hero-headline__alt">{alt}</span>
</div>