Home / File/ One.jsx — astro Source File

One.jsx — astro Source File

Architecture documentation for One.jsx, a javascript file in the astro codebase. 1 imports, 0 dependents.

File javascript 1 imports

Entity Profile

Dependency Diagram

graph LR
  93174e7c_0c8e_ddd6_d57a_07011a5be8a0["One.jsx"]
  0fef379e_25c0_6f95_11fd_6d0f7db42b7e["preact"]
  93174e7c_0c8e_ddd6_d57a_07011a5be8a0 --> 0fef379e_25c0_6f95_11fd_6d0f7db42b7e
  style 93174e7c_0c8e_ddd6_d57a_07011a5be8a0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { h } from 'preact';

export default function({ name }) {
	const inTheClient = import.meta.env.SSR ? '' : ' in the client'
	return (
		<div id={name.toLowerCase()}>Hello {name}{inTheClient}</div>
	);
}

Dependencies

  • preact

Frequently Asked Questions

What does One.jsx do?
One.jsx is a source file in the astro codebase, written in javascript.
What does One.jsx depend on?
One.jsx imports 1 module(s): preact.
Where is One.jsx in the architecture?
One.jsx is located at packages/astro/e2e/fixtures/hydration-race/src/components/One.jsx (directory: packages/astro/e2e/fixtures/hydration-race/src/components).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free