Home / File/ app.jsx — vite Source File

app.jsx — vite Source File

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

File javascript ProjectScaffolder TemplateEngine 5 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  be8ee76c_d09d_1514_9277_c7633caac307["app.jsx"]
  a64569cc_65f9_c1e7_0bd3_8c5be8811ffd["./assets/preact.svg"]
  be8ee76c_d09d_1514_9277_c7633caac307 --> a64569cc_65f9_c1e7_0bd3_8c5be8811ffd
  a216a65e_7cb6_f576_7db5_b553945cf97e["./assets/vite.svg"]
  be8ee76c_d09d_1514_9277_c7633caac307 --> a216a65e_7cb6_f576_7db5_b553945cf97e
  817921b3_203b_5ce4_54de_dce03d3a127e["./assets/hero.png"]
  be8ee76c_d09d_1514_9277_c7633caac307 --> 817921b3_203b_5ce4_54de_dce03d3a127e
  e85e4067_41d9_b96c_c28c_cf8d56d7f75f["app.css"]
  be8ee76c_d09d_1514_9277_c7633caac307 --> e85e4067_41d9_b96c_c28c_cf8d56d7f75f
  818cee82_6b58_61c6_f04e_1736281329e7["hooks"]
  be8ee76c_d09d_1514_9277_c7633caac307 --> 818cee82_6b58_61c6_f04e_1736281329e7
  33f1307e_ddba_7fc7_dc5f_9c584b241411["main.jsx"]
  33f1307e_ddba_7fc7_dc5f_9c584b241411 --> be8ee76c_d09d_1514_9277_c7633caac307
  style be8ee76c_d09d_1514_9277_c7633caac307 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { useState } from 'preact/hooks'
import preactLogo from './assets/preact.svg'
import viteLogo from './assets/vite.svg'
import heroImg from './assets/hero.png'
import './app.css'

export function App() {
  const [count, setCount] = useState(0)

  return (
    <>
      <section id="center">
        <div class="hero">
          <img src={heroImg} class="base" width="170" height="179" alt="" />
          <img src={preactLogo} class="framework" alt="Preact logo" />
          <img src={viteLogo} class="vite" alt="Vite logo" />
        </div>
        <div>
          <h1>Get started</h1>
          <p>
            Edit <code>src/app.jsx</code> and save to test <code>HMR</code>
          </p>
        </div>
        <button class="counter" onClick={() => setCount((count) => count + 1)}>
          Count is {count}
        </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://preactjs.com/" target="_blank">
                <img class="button-icon" src={preactLogo} 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/preact.svg
  • ./assets/vite.svg
  • app.css
  • hooks

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free