Guest User

Untitled

a guest
Apr 27th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. const WrappedInput = React.forwardRef((props, ref) => (
  2. <input ref={ref} />
  3. ));
  4.  
  5. // Now we're getting the ref to the input, not to the wrapper :D
  6. <WrappedInput ref={input => /* .. */} >
Add Comment
Please, Sign In to add comment