@ray-js/framework
TypeScript icon, indicating that this package has built-in type declarations

1.7.24 • Public • Published

@ray-js/framework

实现跨端框架运行时统一,面向开发者提供统一的开发体验。

框架 API

import { router, location, usePageEvent, withPageLifecycle } from 'ray'

Hooks

  • usePageEvent(event, fn) - 页面事件
  • useAppEvent(event, fn) - App 事件

Hoc

  • withPageLifecycle - 非页面组件使用页面事件

Readme

Keywords

Package Sidebar

Install

npm i @ray-js/framework

Weekly Downloads

594

Version

1.7.24

License

MIT

Unpacked Size

22.9 kB

Total Files

38

Last publish

Collaborators

  • tuyafe