Samuel Reed f20da57317 Fix PathHoister attaching to default parameters. (#5415)
* Fix PathHoister attaching to default parameters.

Ref: #5315

* Update hoister.js
2017-03-22 16:37:53 -04:00

6 lines
106 B
JavaScript

function render(Component, text = '') {
return function() {
return <Component text={text} />;
}
}