跳到主要内容

V2.0.0

· 阅读需 1 分钟
Co-creator of yunzaijs 1
ProjectStatusDescription
alemonjsalemonjs-s机器人模块
  • jsx
import React from 'react'
import { createSelects } from 'alemonjs'
import { Text, useSend } from 'alemonjs/jsx'
const selects = createSelects(['message.create'])
// 导出响应
export default onResponse(selects, event => {
// 创建接口
const Send = useSend(event)
// 发送文本
Send(<Text>hello</Text>)
})