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 }