Samuel Reed 5678e61c0f fix binding kind of destructured variables. (#4813)
Fixes #4516 and any other code that hoists into a scope
where function params are destructured.
2016-11-08 13:51:54 -05:00

5 lines
163 B
JavaScript

function render({ text, className, id, ...props }) {
// intentionally ignoring props
return () => (<Component text={text} className={className} id={id} />);
}