Home / File/ ThrowsAnError.jsx — astro Source File

ThrowsAnError.jsx — astro Source File

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

File javascript CoreAstro 1 imports 1 dependents

Entity Profile

Dependency Diagram

graph LR
  b79988a0_90a3_7ee9_ad17_c032348ab0ec["ThrowsAnError.jsx"]
  d9988dd0_c044_f9d2_85cd_a31a0a2bdf80["react"]
  b79988a0_90a3_7ee9_ad17_c032348ab0ec --> d9988dd0_c044_f9d2_85cd_a31a0a2bdf80
  655273f1_0ce6_5f23_7c6b_032c7748437f["ImportsThrowsAnError.jsx"]
  655273f1_0ce6_5f23_7c6b_032c7748437f --> b79988a0_90a3_7ee9_ad17_c032348ab0ec
  style b79988a0_90a3_7ee9_ad17_c032348ab0ec fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { useState } from 'react';

export default function() {
	let player = undefined;
	// This is tested in dev mode, so make it work during the build to prevent
	// breaking other tests.
	if(import.meta.env.MODE === 'production') {
		player = {};
	}
	const [] = useState(player.currentTime || null);

	return (
		<div>Should have thrown</div>
	)
}

Domain

Dependencies

  • react

Frequently Asked Questions

What does ThrowsAnError.jsx do?
ThrowsAnError.jsx is a source file in the astro codebase, written in javascript. It belongs to the CoreAstro domain.
What does ThrowsAnError.jsx depend on?
ThrowsAnError.jsx imports 1 module(s): react.
What files import ThrowsAnError.jsx?
ThrowsAnError.jsx is imported by 1 file(s): ImportsThrowsAnError.jsx.
Where is ThrowsAnError.jsx in the architecture?
ThrowsAnError.jsx is located at packages/integrations/react/test/fixtures/react-component/src/components/ThrowsAnError.jsx (domain: CoreAstro, directory: packages/integrations/react/test/fixtures/react-component/src/components).

Analyze Your Own Codebase

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

Try Supermodel Free