🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

moga-component

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moga-component

#### moga-component是moga官方提供基础的react组件模板,可以在此基础上进行组件开发

latest
Source
npmnpm
Version
2.0.1
Version published
Maintainers
1
Created
Source

介绍

moga-component是moga官方提供基础的react组件模板,可以在此基础上进行组件开发。

特点

  • moga-component的编译底层使用了render-builder编译器。
  • moga-component组件使用的插件为moga-component-build-plugin
  • 使用 npm run start命令即可运行组件,组件的编写只需要关注src目录的index文件即可,无额为操作
  • 使用 npm run build名利,即可构建umd、esm、cjs规范下的组件,满足多种场景使用。
  • 工程使用moga-lint来做项目提交、编写等各个环节的代码校验,保证规范性。
  • 项目工程中的app.json用于moga应用配置,schema.json用于组件接入moga低代码平台时候的数据协议配置,当然你是普通的react组件开发,无需关注它们的配置,它们并不影响你组件的开发。

用法

import MogaC from 'moga-component';

function App(){
  return <MogaC />;
}

export default App;

FAQs

Package last updated on 05 Jul 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts