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

πŸ‘οΈ
64
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
96%
Success Rate