1
Watch
1
Star
0
Fork
0
Issue

weui for react

Cathy0807
Cathy0807
pushedAt 4 years ago

Cathy0807/react-weui

#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

0.4.x documentation with live examples.

1.0.x documentation with live examples.

Installation (0.4.x)

With npm:

If React is not installed

npm install --save [email protected] [email protected]
npm install --save [email protected] react-weui

With React Installed

npm install [email protected] react-weui --save

Due to the browser compatibility issues, react-weui required babel polyfill to work

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

1.0.0 alpha

0.4.3 Demo

License

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

ucloud ads