logo
Guide
Tutorials
Configure
API
Community
Rsbuild
Rspress
Modern.js Module
Modern.js v1
简体中文
English
GitHub
Guide
Tutorials
Configure
API
Community
Rsbuild
Rspress
Modern.js Module
Modern.js v1
简体中文
English
GitHub
logo
Commands

Convention

src/

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

api/

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

server/

index.[tj]s
shared/

config/

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

runtime

Core API

bootstrap
createApp
createRoot
render
useLoader
useModuleApps
useRuntimeContext

APP API

defineConfig

Router API

router

Model API

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

SSR API

NoSSR
PreRender
renderStreaming
renderString
createRequestHandler

BFF API

hook
useContext

Web Server API

Hook
Middleware
Unstable Middleware

Utility API

CSS-In-JS API
Head
loadable

html/#

You can inject custom HTML fragments at different locations of the default internal HTML template through the config/html directory.

For specific usage, please refer to: Custom HTML.

Edit this page on GitHub
Previous Pageshared/
Next pageicon/
ON THIS PAGE