notes.dt.in.th

Using multiple refs in React

https://www.npmjs.com/package/@seznam/compose-react-refs

import composeRefs from '@seznam/compose-react-refs'
const textareaRef = useRef < HTMLTextAreaElement > null
return <textarea ref={composeRefs(textareaRef, props.textareaRef)} />