react-rainbow icon indicating copy to clipboard operation
react-rainbow copied to clipboard

fix: add types to ref in components that expose some methods

Open LeandroTorresSicilia opened this issue 2 years ago • 0 comments

Some components like input expose method through ref like focus, blur, click, etc, we need to add this interface to ref exposed then when we use it like:

inputRef.current.focus()
...
<Input ref={inputRef} />

then inputRef.current.focus() will recognize the properties exposed

LeandroTorresSicilia avatar Jan 28 '23 21:01 LeandroTorresSicilia