Implementierung von NewFooComponent

This commit is contained in:
AzureAD\KittelMarco 2025-06-11 08:47:47 +02:00
parent 1aa9377385
commit ca9ab3249f
2 changed files with 13 additions and 1 deletions

View File

@ -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 = () => <div style="color: red">Red</div>;
const GreenDiv = () => <div style="color: green">Green</div>;
const BlueDiv = () => <div style="color: blue">Blue</div>;
@ -58,6 +58,7 @@ function App() {
<div class="m-12 items-center justify-center^ flex h-screen shadow-lg bg-twitter-blue text-center">
red background
</div>
<NewFooComponent/>
</>
);
}

11
src/NewFoo.tsx Normal file
View File

@ -0,0 +1,11 @@
function NewFooComponent(){
return (
<>
<div class="md (768px) justify-center bg-amber-100 py-7 justify-center text-center">
New Foo
</div>
</>
);
}
export{ NewFooComponent }