From ca9ab3249f302eccc52bb537796d061607b3f285 Mon Sep 17 00:00:00 2001 From: "AzureAD\\KittelMarco" Date: Wed, 11 Jun 2025 08:47:47 +0200 Subject: [PATCH] Implementierung von NewFooComponent --- src/App.tsx | 3 ++- src/NewFoo.tsx | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 src/NewFoo.tsx diff --git a/src/App.tsx b/src/App.tsx index f199133..7e61f5e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,7 +1,7 @@ import { createSignal, For, Show } from "solid-js"; import { Dynamic } from "solid-js/web"; import { FooComponent } from "./Foo"; - +import { NewFooComponent } from "./NewFoo"; const RedDiv = () =>
Red
; const GreenDiv = () =>
Green
; const BlueDiv = () =>
Blue
; @@ -58,6 +58,7 @@ function App() {
red background
+ ); } diff --git a/src/NewFoo.tsx b/src/NewFoo.tsx new file mode 100644 index 0000000..3c4ca16 --- /dev/null +++ b/src/NewFoo.tsx @@ -0,0 +1,11 @@ +function NewFooComponent(){ + return ( + <> +
+ New Foo +
+ + ); +} + +export{ NewFooComponent }