Home / File/ app.tsx — vite Source File

app.tsx — vite Source File

Architecture documentation for app.tsx, a tsx file in the vite codebase. 5 imports, 1 dependents.

File tsx ProjectScaffolder TemplateEngine 5 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  88fb52b5_9513_4308_12b1_375e160d5115["app.tsx"]
  7517bd61_6ae9_9956_bb47_63f7907c6c25["./assets/qwik.svg"]
  88fb52b5_9513_4308_12b1_375e160d5115 --> 7517bd61_6ae9_9956_bb47_63f7907c6c25
  d8b41844_696f_de0b_8636_01f79ccf9e90["./assets/vite.svg"]
  88fb52b5_9513_4308_12b1_375e160d5115 --> d8b41844_696f_de0b_8636_01f79ccf9e90
  97a14cfa_4dc7_7412_339d_98901354462b["./assets/hero.png"]
  88fb52b5_9513_4308_12b1_375e160d5115 --> 97a14cfa_4dc7_7412_339d_98901354462b
  44035261_54b7_da4e_a494_ddc9f4c77aeb["app.css"]
  88fb52b5_9513_4308_12b1_375e160d5115 --> 44035261_54b7_da4e_a494_ddc9f4c77aeb
  95bda53e_fb4f_022c_a818_46cc94edca77["qwik"]
  88fb52b5_9513_4308_12b1_375e160d5115 --> 95bda53e_fb4f_022c_a818_46cc94edca77
  ceff725a_95ec_14b6_62e9_69daeba99241["main.tsx"]
  ceff725a_95ec_14b6_62e9_69daeba99241 --> 88fb52b5_9513_4308_12b1_375e160d5115
  style 88fb52b5_9513_4308_12b1_375e160d5115 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { component$, useSignal } from '@builder.io/qwik'

import qwikLogo from './assets/qwik.svg'
import viteLogo from './assets/vite.svg'
import heroImg from './assets/hero.png'
import './app.css'

export const App = component$(() => {
  const count = useSignal(0)

  return (
    <>
      <section id="center">
        <div class="hero">
          <img src={heroImg} class="base" width="170" height="179" alt="" />
          <img src={qwikLogo} class="framework" alt="Qwik logo" />
          <img src={viteLogo} class="vite" alt="Vite logo" />
        </div>
        <div>
          <h1>Get started</h1>
          <p>
            Edit <code>src/app.tsx</code> and save to test <code>HMR</code>
          </p>
        </div>
        <button class="counter" onClick$={() => count.value++}>
          Count is {count.value}
        </button>
      </section>

      <div class="ticks"></div>

      <section id="next-steps">
        <div id="docs">
          <svg class="icon" role="presentation" aria-hidden="true">
            <use href="/icons.svg#documentation-icon"></use>
          </svg>
          <h2>Documentation</h2>
          <p>Your questions, answered</p>
          <ul>
            <li>
              <a href="https://vite.dev/" target="_blank">
                <img class="logo" src={viteLogo} alt="" />
                Explore Vite
              </a>
            </li>
            <li>
              <a href="https://qwik.dev/" target="_blank">
                <img class="button-icon" src={qwikLogo} alt="" />
                Learn more
              </a>
            </li>
          </ul>
        </div>
        <div id="social">
          <svg class="icon" role="presentation" aria-hidden="true">
            <use href="/icons.svg#social-icon"></use>
          </svg>
          <h2>Connect with us</h2>
          <p>Join the Vite community</p>
          <ul>
            <li>
              <a href="https://github.com/vitejs/vite" target="_blank">
                <svg class="button-icon" role="presentation" aria-hidden="true">
                  <use href="/icons.svg#github-icon"></use>
                </svg>
                GitHub
              </a>
            </li>
            <li>
              <a href="https://chat.vite.dev/" target="_blank">
                <svg class="button-icon" role="presentation" aria-hidden="true">
                  <use href="/icons.svg#discord-icon"></use>
                </svg>
                Discord
              </a>
            </li>
            <li>
              <a href="https://x.com/vite_js" target="_blank">
                <svg class="button-icon" role="presentation" aria-hidden="true">
                  <use href="/icons.svg#x-icon"></use>
                </svg>
                X.com
              </a>
            </li>
            <li>
              <a href="https://bsky.app/profile/vite.dev" target="_blank">
                <svg class="button-icon" role="presentation" aria-hidden="true">
                  <use href="/icons.svg#bluesky-icon"></use>
                </svg>
                Bluesky
              </a>
            </li>
          </ul>
        </div>
      </section>

      <div class="ticks"></div>
      <section id="spacer"></section>
    </>
  )
})

Subdomains

Functions

Dependencies

  • ./assets/hero.png
  • ./assets/qwik.svg
  • ./assets/vite.svg
  • app.css
  • qwik

Frequently Asked Questions

What does app.tsx do?
app.tsx is a source file in the vite codebase, written in tsx. It belongs to the ProjectScaffolder domain, TemplateEngine subdomain.
What functions are defined in app.tsx?
app.tsx defines 1 function(s): App.
What does app.tsx depend on?
app.tsx imports 5 module(s): ./assets/hero.png, ./assets/qwik.svg, ./assets/vite.svg, app.css, qwik.
What files import app.tsx?
app.tsx is imported by 1 file(s): main.tsx.
Where is app.tsx in the architecture?
app.tsx is located at packages/create-vite/template-qwik-ts/src/app.tsx (domain: ProjectScaffolder, subdomain: TemplateEngine, directory: packages/create-vite/template-qwik-ts/src).

Analyze Your Own Codebase

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

Try Supermodel Free