# Using multiple refs in React

https://www.npmjs.com/package/@seznam/compose-react-refs (opens new window)

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

—@dtinth, Wed, 10 Jun 2020