0.0.1 • Published 9 years ago

weex-rx-mounter v0.0.1

Weekly downloads
5
License
-
Repository
-
Last release
9 years ago

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')