A hook that can combine two refs(mutable or callbackRefs) into a single callbackRef
Argument value | Type | Description |
---|---|---|
ref2 | Callback/Mutable ref | First ref |
ref1 | Callback/Mutable ref | Second ref |
Return value | Type | Description | Default value |
---|---|---|---|
ref | Callback ref | A callback ref function that can internally combines both the refs from the arguments | () => null |
Note: Credit of this hook goes to material-ui
Join our discord server! You can click the floating discord icon at the bottom right of the screen and chat with us!