react-weui-bidi
v1.0.6
Published
weui for react
Downloads
2
Maintainers
Readme
WeUI Components build with React.
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
License
The MIT License(http://opensource.org/licenses/MIT)