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