-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(App.tsx): Update component rendering and variable names
- Replace 'createSignal' with 'For' for iterating over components. - Rename 'children' to 'examples' for better semantic meaning. - Uncomment and adjust 'menus' as it's not currently used. - Wrap the component returns in a parent <div> element.
- Loading branch information
Showing
2 changed files
with
10 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -129,3 +129,5 @@ dist | |
.yarn/install-state.gz | ||
.pnp.* | ||
bun.lockb | ||
.DS_Store | ||
lib/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
import { createSignal, lazy } from "solid-js"; | ||
import { For, lazy } from "solid-js"; | ||
|
||
const children = [ | ||
const examples = [ | ||
lazy(() => import("./components/button")), | ||
lazy(() => import("./components/spinner")), | ||
lazy(() => import("./components/progress")), | ||
]; | ||
|
||
const menus = ["Button"]; | ||
//const menus = ["Button"]; | ||
|
||
const App = () => { | ||
const [index, setIndex] = createSignal(0); | ||
|
||
return children; | ||
return ( | ||
<div> | ||
<For each={examples}>{(item) => item()}</For> | ||
</div> | ||
); | ||
}; | ||
|
||
export default App; |