SolidCounter() — astro Function Reference
Architecture documentation for the SolidCounter() function in SolidCounter.tsx from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 000a7760_30ee_9c46_b06c_298a920c727b["SolidCounter()"] 698893d1_e9dd_9ec1_6040_57b364fc225e["SolidCounter.tsx"] 000a7760_30ee_9c46_b06c_298a920c727b -->|defined in| 698893d1_e9dd_9ec1_6040_57b364fc225e style 000a7760_30ee_9c46_b06c_298a920c727b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/e2e/fixtures/multiple-frameworks/src/components/solid/SolidCounter.tsx lines 4–19
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>{count()}</pre>
<button class="increment" onClick={add}>+</button>
</div>
<div class="counter-message">{children}</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/multiple-frameworks/src/components/solid/SolidCounter.tsx.
Where is SolidCounter() defined?
SolidCounter() is defined in packages/astro/e2e/fixtures/multiple-frameworks/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