react-weui-ts
v1.0.6
Published
weui for react, written by typescript
Downloads
1
Maintainers
Readme
React-WeUI
基于weui封装的react移动端组件库
Docs
Installation
With npm:
如果未安装react
npm install --save react react-dom
npm install --save [email protected] react-weui
如果已经安装react
npm install [email protected] react-weui --save
举例
文档里面有例子,这里简单介绍下怎么使用组件
// app.js
import * as React from 'react';
import ReactDOM from 'react-dom';
import { Button } from 'react-weui';
//import styles
import 'weui';
const App = () => <Button>hello wechat</Button>;
ReactDOM.render((
<App/>
), document.getElementById('container'));
构建
npm run compile
构建文档
npm run compile:doc
发布文档
npm run deploy:doc