yahoo / jsx-test

An easy way to test your React Components (`.jsx` files).
Other
27 stars 17 forks source link

withContext doesn't support mixins well #32

Open hankhsiao opened 8 years ago

hankhsiao commented 8 years ago

withContext wraps another ReactComponent, so rendered component doesn't have those functions provided by mixins.

Can we change something like

function renderComponent() {
    var element = React.createElement.apply(React, arguments);
    var component = ReactDOM.render(element, appContainer);
    return component.refs.child || component;
}