Home / File/ react-as-page.ts — astro Source File

react-as-page.ts — astro Source File

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

Entity Profile

Dependency Diagram

graph LR
  b5c4f577_b4a6_73e8_8fd3_ceae6b318cf1["react-as-page.ts"]
  01a1bba7_5988_a81a_eb68_dd382646e923["button.jsx"]
  b5c4f577_b4a6_73e8_8fd3_ceae6b318cf1 --> 01a1bba7_5988_a81a_eb68_dd382646e923
  f16d8c76_2866_6150_bd14_0347b59abfe9["astro"]
  b5c4f577_b4a6_73e8_8fd3_ceae6b318cf1 --> f16d8c76_2866_6150_bd14_0347b59abfe9
  e5359079_11b2_76cc_fb55_2963613c4b02["container"]
  b5c4f577_b4a6_73e8_8fd3_ceae6b318cf1 --> e5359079_11b2_76cc_fb55_2963613c4b02
  4ef918ed_1833_d4ac_87f9_6b1eb1475bdf["server.js"]
  b5c4f577_b4a6_73e8_8fd3_ceae6b318cf1 --> 4ef918ed_1833_d4ac_87f9_6b1eb1475bdf
  style b5c4f577_b4a6_73e8_8fd3_ceae6b318cf1 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, {
			partial: false
	});
}

Subdomains

Functions

Dependencies

Frequently Asked Questions

What does react-as-page.ts do?
react-as-page.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-as-page.ts?
react-as-page.ts defines 1 function(s): GET.
What does react-as-page.ts depend on?
react-as-page.ts imports 4 module(s): astro, button.jsx, container, server.js.
Where is react-as-page.ts in the architecture?
react-as-page.ts is located at packages/astro/test/fixtures/container-custom-renderers/src/pages/react-as-page.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