Island.jsx — astro Source File
Architecture documentation for Island.jsx, a javascript file in the astro codebase. 3 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR fabef3ac_fe75_f59e_da03_824e9a40f3fd["Island.jsx"] 345725ab_308a_8bcf_9663_d595c914e09f["Island.css"] fabef3ac_fe75_f59e_da03_824e9a40f3fd --> 345725ab_308a_8bcf_9663_d595c914e09f e4d29903_9244_dba2_09cf_9e218d06fa64["css.js"] fabef3ac_fe75_f59e_da03_824e9a40f3fd --> e4d29903_9244_dba2_09cf_9e218d06fa64 d9988dd0_c044_f9d2_85cd_a31a0a2bdf80["react"] fabef3ac_fe75_f59e_da03_824e9a40f3fd --> d9988dd0_c044_f9d2_85cd_a31a0a2bdf80 style fabef3ac_fe75_f59e_da03_824e9a40f3fd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import React, { useState } from 'react';
import './Island.css';
import { indirect} from './css.js';
export default function Counter({ children, count: initialCount, id, page }) {
const [count, setCount] = useState(initialCount);
const add = () => setCount((i) => i + 1);
const subtract = () => setCount((i) => i - 1);
return (
<>
<div id={id} className="counter">
<h1 className="page">{page}</h1>
<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
- css.js
- 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 E2ETesting domain, TestFixtures subdomain.
What functions are defined in Island.jsx?
Island.jsx defines 1 function(s): Counter.
What does Island.jsx depend on?
Island.jsx imports 3 module(s): Island.css, css.js, react.
Where is Island.jsx in the architecture?
Island.jsx is located at packages/astro/e2e/fixtures/view-transitions/src/components/Island.jsx (domain: E2ETesting, subdomain: TestFixtures, directory: packages/astro/e2e/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