Skip to content

wlchou/react-weui

 
 

Repository files navigation

#React-WeUI Build Status npm version

WeUI Components build with React.

Coverage Status PRs Welcome QQ

Notes

Please See 0.4.x branch for current stable usage and usage with weui 0.4.x

Master branch under active development for WeUI 1.0.0, Not Ready for use - APIs will change. Check out the 1.0.0 Progression and contributing guidelines to see where you can help out.

Docs

See the documentation with live examples (0.4.x).

Installation (0.4.x)

With npm:

If React is not installed

npm install react weui@0.4.3 react-weui --save

With React Installed

npm install weui@0.4.3 react-weui --save

Example

We have several examples on the documentation. Here is the first one to get you started:

// app.js

import React, { Component } from 'react';
import ReactDOM from 'react-dom';
//commonJS Module *Require Plugins
//import { Button } from 'react-weui'

//ES6 Import
import WeUI from 'react-weui';
import 'weui';
const {Button} = WeUI;

class App extends Component {
    render() {
        return (
            <Button>hello wechat</Button>
        );
    }
}

ReactDOM.render((
    <App/>
), document.getElementById('container'));

Contributing

Welcome and send the PR in! Development of components will happen in this github repo.

See the contributing guidelines for details.

Mobile Demo

react-weui

https://weui.github.io/react-weui

License

The MIT License(http://opensource.org/licenses/MIT)

Packages

No packages published

Languages

  • JavaScript 98.4%
  • CSS 1.5%
  • HTML 0.1%