horizon-react
Advanced tools
Comparing version 0.0.1-alpha4 to 0.0.1-alpha5
@@ -123,3 +123,3 @@ 'use strict'; | ||
value: function render() { | ||
return React.createElement(TargetComponent, _extends({}, this.props, this.state.data, { | ||
return (0, _react.createElement)(TargetComponent, _extends({}, this.props, this.state.data, { | ||
horizon: this.context.horizon | ||
@@ -126,0 +126,0 @@ })); |
{ | ||
"name": "horizon-react", | ||
"version": "0.0.1-alpha4", | ||
"version": "0.0.1-alpha5", | ||
"description": "React bindings for horizon", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -1,2 +0,2 @@ | ||
import { Component, PropTypes } from 'react'; | ||
import { Component, PropTypes, createElement } from 'react'; | ||
import hoistStatics from 'hoist-non-react-statics'; | ||
@@ -66,9 +66,7 @@ | ||
render() { | ||
return ( | ||
<TargetComponent | ||
{...this.props} | ||
{...this.state.data} | ||
horizon={this.context.horizon} | ||
/> | ||
); | ||
return createElement(TargetComponent, { | ||
...this.props, | ||
...this.state.data, | ||
horizon: this.context.horizon | ||
}); | ||
} | ||
@@ -75,0 +73,0 @@ } |
18660
403