const MyInput = function MyInput({ref: ref, ...props}) { return ( ); }; const MyInput2 = function MyInput({ref: ref, value}) { return ( ); };