SolidCounter.jsx — astro Source File
Architecture documentation for SolidCounter.jsx, a javascript file in the astro codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR baaa8921_2271_ac0c_c179_4ed3015fd321["SolidCounter.jsx"] 5458ee59_7908_bf35_f257_ad630e4e60d7["solid-js"] baaa8921_2271_ac0c_c179_4ed3015fd321 --> 5458ee59_7908_bf35_f257_ad630e4e60d7 style baaa8921_2271_ac0c_c179_4ed3015fd321 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { createSignal } from 'solid-js';
/** a counter written with Solid */
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
Functions
Dependencies
- solid-js
Source
Frequently Asked Questions
What does SolidCounter.jsx do?
SolidCounter.jsx is a source file in the astro codebase, written in javascript. It belongs to the IntegrationAdapters domain, ReactIntegration subdomain.
What functions are defined in SolidCounter.jsx?
SolidCounter.jsx defines 1 function(s): SolidCounter.
What does SolidCounter.jsx depend on?
SolidCounter.jsx imports 1 module(s): solid-js.
Where is SolidCounter.jsx in the architecture?
SolidCounter.jsx is located at packages/astro/test/fixtures/astro-jsx/src/components/SolidCounter.jsx (domain: IntegrationAdapters, subdomain: ReactIntegration, directory: packages/astro/test/fixtures/astro-jsx/src/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free