weex-rx-mounter
v0.0.1
Published
Universal mounter for Rx
Downloads
3
Readme
Universal Rx Mounter
import {mount} from 'weex-rx-mounter'
import {View, Text} from 'weex-rx-components'
import {createElement} from 'weex-rx'
function Blocks () {
return <View>
<View id="b1"></View>
<View id="b2"></View>
<View id="b3"></View>
</View>
}
mount(<Blocks />, 'body')
function Hello(props) {
return <Text>Hello {this.props.name}</Text>
}
mount(<Hello name="world"/>, 'b1')
mount(<Hello name="taobao"/>, 'b2')
mount(<Hello name="fed"/>, 'b3')