(props)
| 25 | */ |
| 26 | export function forwardRef(fn) { |
| 27 | function Forwarded(props) { |
| 28 | let clone = assign({}, props); |
| 29 | delete clone.ref; |
| 30 | return fn(clone, props.ref || null); |
| 31 | } |
| 32 | |
| 33 | // mobx-react checks for this being present |
| 34 | Forwarded.$$typeof = REACT_FORWARD_SYMBOL; |