@alilc/lowcode-rax-renderer
TypeScript icon, indicating that this package has built-in type declarations

1.2.5 • Public • Published

Rax Renderer

Rax 渲染模块。

安装

$ npm install @alilc/lowcode-rax-renderer --save

使用

import { createElement, render } from 'rax';
import DriverUniversal from 'driver-universal';
import RaxRenderer from '@ali/lowcode-rax-renderer';

const components = {
  View,
  Text
};

const schema = {
  componentName: 'Page',
  fileName: 'home',
  children: [
    {
      componentName: 'View',
      children: [
        {
          componentName: 'Text',
          props: {
            type: 'primary'
          },
          children: ['Welcome to Your Rax App']
        }
      ]
    }
  ]
};

render(
  <RaxRenderer
    schema={schema}
    components={components}
  />,
  document.getElementById('root'), { driver: DriverUniversal }
);

Readme

Keywords

Package Sidebar

Install

npm i @alilc/lowcode-rax-renderer

Weekly Downloads

67

Version

1.2.5

License

MIT

Unpacked Size

2.48 MB

Total Files

27

Last publish

Collaborators

  • 1ncounter
  • leoyuan
  • whatever_lll
  • yang1996
  • jun.li
  • qingniaotonghua
  • woshilaoge
  • jack.lianjie
  • otakuxv
  • zyy7259
  • sun2ama
  • hujiulong
  • liujuping123
  • akirakai
  • xingmolu
  • eternalsky
  • mark-ck
  • hzd822
  • clarencep
  • alvarto
  • leoyuan88