logo
Guide
Config
Plugin
API
Tutorials
Community
简体中文
English
GitHub
Guide
Config
Plugin
API
Tutorials
Community
简体中文
English
GitHub
    logo
    Commands

    File Conventions

    src/

    App.[tj]sx
    entry.[tj]s
    entry.server.[tj]sx
    index.[tj]s
    routes/
    *.[server|node].[tj]sx
    */.stories.[tj]sx

    api/

    lambda/*.[tj]s
    _app.[tj]s

    server/

    index.[tj]s
    shared/

    config/

    html/
    icon/
    mock/
    public/
    upload/
    modern.config.[tj]s

    Runtime

    Core

    bootstrap
    createApp
    createRoot
    render
    useLoader
    useModuleApps
    useRuntimeContext

    App

    defineConfig

    Router

    router

    Model

    Provider
    Auto actions
    connect
    createApp
    createStore
    handleEffect
    model
    useLocalModel
    useModel
    useStaticModel
    useStore

    SSR

    NoSSR
    PreRender
    renderStreaming
    renderString
    createRequestHandler

    BFF

    hook
    useContext

    Web Server

    Hook
    Middleware
    Unstable Middleware

    Utility

    CSS-In-JS API
    Head
    loadable

    *.[server|node].[tj]sx#

    Used in the application project to place server-side code. When *.tsx and *.[server|node].tsx coexist, SSR will prefer to use the *.[server|node].tsx file instead of the *.tsx file when rendering on the server.

    Edit this page on GitHub
    Previous Pageroutes/
    Next Page**/*.stories.[tj]sx
    ON THIS PAGE