πŸ“Š React Js
Q. What does `useImperativeHandle` do?
  • (A) Access DOM directly
  • (B) Customize the instance value that is exposed to parent components using refs
  • (C) Track state
  • (D) Trigger re-renders
πŸ’¬ Discuss
βœ… Correct Answer: (B) Customize the instance value that is exposed to parent components using refs

Explanation: `useImperativeHandle` lets you customize the value exposed when using `ref` with `forwardRef`.

Explanation by: Mr. Dubey
`useImperativeHandle` lets you customize the value exposed when using `ref` with `forwardRef`.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
49
Total Visits
πŸ“½οΈ
9 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
82%
Success Rate