SolidCounter() — astro Function Reference
Architecture documentation for the SolidCounter() function in SolidCounter.jsx from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 234905bd_5a3f_bca7_7047_361969cd89d2["SolidCounter()"] baaa8921_2271_ac0c_c179_4ed3015fd321["SolidCounter.jsx"] 234905bd_5a3f_bca7_7047_361969cd89d2 -->|defined in| baaa8921_2271_ac0c_c179_4ed3015fd321 style 234905bd_5a3f_bca7_7047_361969cd89d2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/test/fixtures/astro-jsx/src/components/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/astro-jsx/src/components/SolidCounter.jsx.
Where is SolidCounter() defined?
SolidCounter() is defined in packages/astro/test/fixtures/astro-jsx/src/components/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