diff --git a/src/App.tsx b/src/App.tsx index d15aed2..f779d0a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -54,7 +54,7 @@ function App() { - + ); } diff --git a/src/Foo.tsx b/src/Foo.tsx index e66b22c..2341210 100644 --- a/src/Foo.tsx +++ b/src/Foo.tsx @@ -1,5 +1,14 @@ -export function FooComponent(){ +import { createSignal} from "solid-js"; + +export function FooComponent(props){ +const [theme, setTheme] = createSignal("light") return ( -
Exported Foo Component
+ <> +
+ This div's theme is determined dynamically! +
+

props.text

+ + ); } \ No newline at end of file