Bada's Coding

Bada's Coding

(React) useImperativeHandle

Bada's photo
·Jul 29, 2022·

1 min read

'useImperativeHanlde' hook is based on 'forwardRef' hook.

It can be used in these situations.

  1. If you want to send multiple refs from the child component

  2. If the child component also wants to use the refs

Below is the example.

Share this