diff --git a/src/App.tsx b/src/App.tsx
index bfc2271..237212e 100644
--- a/src/App.tsx
+++ b/src/App.tsx
@@ -4,7 +4,7 @@ import Alert from "./components/Alert";
function App() {
return (
-
Hello Marx
+
Hello Marx
);
}
diff --git a/src/components/Alert.tsx b/src/components/Alert.tsx
index 526fd95..708970d 100644
--- a/src/components/Alert.tsx
+++ b/src/components/Alert.tsx
@@ -1,5 +1,7 @@
+import type { ReactNode } from "react";
+
interface Props{
- children: string;
+ children: ReactNode;
}
function Alert({children} : Props) {