Counter.jsx — astro Source File
Architecture documentation for Counter.jsx, a javascript file in the astro codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR 27973a99_b39c_4221_dd28_3d037907b62e["Counter.jsx"] 3617b568_6b12_5103_2b96_461822e0befd["react-lib"] 27973a99_b39c_4221_dd28_3d037907b62e --> 3617b568_6b12_5103_2b96_461822e0befd style 27973a99_b39c_4221_dd28_3d037907b62e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { useSpecialState } from '@test/react-lib'
export default function Counter({ children }) {
const [count, setCount] = useSpecialState(0);
const add = () => setCount((i) => i + 1);
const subtract = () => setCount((i) => i - 1);
return (
<>
<div class="counter">
<button onClick={subtract}>-</button>
<pre id="counter-text">{count}</pre>
<button onClick={add}>+</button>
</div>
<div class="counter-message">{children}</div>
</>
);
}
Domain
Subdomains
Functions
Dependencies
- react-lib
Source
Frequently Asked Questions
What does Counter.jsx do?
Counter.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 Counter.jsx?
Counter.jsx defines 1 function(s): Counter.
What does Counter.jsx depend on?
Counter.jsx imports 1 module(s): react-lib.
Where is Counter.jsx in the architecture?
Counter.jsx is located at packages/astro/test/fixtures/preact-compat-component/src/components/Counter.jsx (domain: IntegrationAdapters, subdomain: ReactIntegration, directory: packages/astro/test/fixtures/preact-compat-component/src/components).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free