Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 804 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 804 Bytes

Rax 示例

本文件夹提供了多个 Rax 示例项目供用户参考。

快速开始

npm install

# dev mode
npm run start

# build mode
npm run build

示例说明

示例项目中小程序端均采用运行时方案

  • with-miniapp-native-custom-component: 使用小程序原生自定义组件(本地组件 + npm 组件)
  • with-miniapp-plugin-component: 使用小程序插件组件 + 分端构建
  • with-miniapp-native-page: 使用原生页面
  • use-rax-compiled-component-in-runtime-miniapp: Rax 小程序运行时项目使用 Rax 编译时组件
  • app-lifecycle: 使用 app 生命周期
  • page-lifecycle-with-router: 使用 page 生命周期 + 路由跳转
  • event-handler: 事件绑定(编译时小程序)
  • get-element: document/element getElementXXX 相关 API