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