Version: v4.10.0
use-fork-ref
#
AboutA hook that can combine two refs(mutable or callbackRefs) into a single callbackRef
#
Installation#
Importing the hook#
Usage#
ArgumentsArgument value | Type | Description |
---|---|---|
ref2 | Callback/Mutable ref | First ref |
ref1 | Callback/Mutable ref | Second ref |
#
ReturnsReturn value | Type | Description | Default value |
---|---|---|---|
ref | Callback ref | A callback ref function that can internally combines both the refs from the arguments | () => null |
#
Original sourceNote: Credit of this hook goes to material-ui
#
Join Bhargav's discord serverYou can click on the floating discord icon at the bottom right of the screen and talk to us in our server.