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