Castle logo

CASTLE UI

Search

K

useMergeRefs is a custom hook used to merge several react refs into a single one.

Import

import { useMergeRefs } from '@passfort/castle'

Copy

Return value

The useMergeRefs hook returns a function that receives the element and assign the value to the given React refs.

Usage

Copy

live example

Usage combining with another Chakra-UI hooks

Copy

live example

Contents