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

modern.config.[tj]s#

The Modern.js configuration file. Through this file, you can personalize the configuration of various aspects of the current project.

To learn more about how to use the configuration, please refer to Configuration Usage.

Edit this page on GitHub
Previous Pagestorybook/
Next pagebootstrap
ON THIS PAGE