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
; const YellowDiv = () =>
Yellow
; const BlackDiv = () =>
Black
; const options = { red: RedDiv, green: GreenDiv, blue: BlueDiv, yellow: YellowDiv, black: BlackDiv, }; function MyComponent() { const [count, setCount] = createSignal(0); console.log(count()); return (
5} fallback={ <>

Count: {count()}

} >
Count Limit reached
) } function App() { const [selected, setSelected] = createSignal("red"); return ( <>
red background
); } export default App;