Home / File/ react.ts — astro Source File

react.ts — astro Source File

Architecture documentation for react.ts, a typescript file in the astro codebase. 4 imports, 0 dependents.

Entity Profile

Dependency Diagram

graph LR
  2bb56fa2_41e0_477e_6265_889bf2dac95f["react.ts"]
  01a1bba7_5988_a81a_eb68_dd382646e923["button.jsx"]
  2bb56fa2_41e0_477e_6265_889bf2dac95f --> 01a1bba7_5988_a81a_eb68_dd382646e923
  f16d8c76_2866_6150_bd14_0347b59abfe9["astro"]
  2bb56fa2_41e0_477e_6265_889bf2dac95f --> f16d8c76_2866_6150_bd14_0347b59abfe9
  e5359079_11b2_76cc_fb55_2963613c4b02["container"]
  2bb56fa2_41e0_477e_6265_889bf2dac95f --> e5359079_11b2_76cc_fb55_2963613c4b02
  4ef918ed_1833_d4ac_87f9_6b1eb1475bdf["server.js"]
  2bb56fa2_41e0_477e_6265_889bf2dac95f --> 4ef918ed_1833_d4ac_87f9_6b1eb1475bdf
  style 2bb56fa2_41e0_477e_6265_889bf2dac95f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import type {APIRoute} from "astro";
import { experimental_AstroContainer } from "astro/container";
import renderer from '@astrojs/react/server.js';
import Component from "../components/button.jsx"

export const GET: APIRoute = async (ctx) => {
		const container = await experimental_AstroContainer.create();
		container.addServerRenderer({ renderer });
		return await container.renderToResponse(Component);
}

Subdomains

Functions

Dependencies

Frequently Asked Questions

What does react.ts do?
react.ts is a source file in the astro codebase, written in typescript. It belongs to the IntegrationAdapters domain, ReactIntegration subdomain.
What functions are defined in react.ts?
react.ts defines 1 function(s): GET.
What does react.ts depend on?
react.ts imports 4 module(s): astro, button.jsx, container, server.js.
Where is react.ts in the architecture?
react.ts is located at packages/astro/test/fixtures/container-custom-renderers/src/pages/react.ts (domain: IntegrationAdapters, subdomain: ReactIntegration, directory: packages/astro/test/fixtures/container-custom-renderers/src/pages).

Analyze Your Own Codebase

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

Try Supermodel Free