assign ref for React ref
npm install assign-ref
# or use yarn
yarn add assign-ref
import assignRef from 'assign-ref'
const aref = React.createRef()
const bref = React.createRef()
<Button ref={ref => {
assignRef(aref, ref)
assignRef(bref, ref)
}}></Button>
git checkout -b feature-new
or git checkout -b fix-which-bug
git commit -am 'feat: some description (close #123)'
or git commit -am 'fix: some description (fix #123)'
git push
This library is written and maintained by imcuttle, [email protected].
MIT - imcuttle 🐟