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

mock/#

When there is a config/mock/index.js file in the project directory, Modern.js will automatically enable the Mock service during development.

Edit this page on GitHub
Previous Pageupload/
Next pagestorybook/
ON THIS PAGE