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

shared/#

Shared source code directory. When there is common code in api/, server/, and src/ in the project, you can put these codes in the shared directory instead of directly referencing them.

Edit this page on GitHub
Previous Pageindex.[tj]s
Next pagehtml/
ON THIS PAGE