SolidCounter() — astro Function Reference
Architecture documentation for the SolidCounter() function in SolidCounter.tsx from the astro codebase.
Entity Profile
Dependency Diagram
graph TD b68c66fb_7843_4e21_250b_bc2d19832b73["SolidCounter()"] 7b03d304_00b9_d94b_7158_39b176bdf00c["SolidCounter.tsx"] b68c66fb_7843_4e21_250b_bc2d19832b73 -->|defined in| 7b03d304_00b9_d94b_7158_39b176bdf00c style b68c66fb_7843_4e21_250b_bc2d19832b73 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/e2e/fixtures/nested-in-vue/src/components/solid/SolidCounter.tsx lines 4–17
export default function SolidCounter({ children, id }) {
const [count, setCount] = createSignal(0);
const add = () => setCount(count() + 1);
const subtract = () => setCount(count() - 1);
return (
<div id={id} class="counter">
<button class="decrement" onClick={subtract}>-</button>
<pre id={`${id}-count`}>{count()}</pre>
<button id={`${id}-increment`} class="increment" onClick={add}>+</button>
<div class="children">{children}</div>
</div>
);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does SolidCounter() do?
SolidCounter() is a function in the astro codebase, defined in packages/astro/e2e/fixtures/nested-in-vue/src/components/solid/SolidCounter.tsx.
Where is SolidCounter() defined?
SolidCounter() is defined in packages/astro/e2e/fixtures/nested-in-vue/src/components/solid/SolidCounter.tsx at line 4.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free