What is the purpose of a useDebounce custom hook?
-
A
To delay rendering until all state updates complete
-
B
To delay updating a value until the user stops changing it for a specified time
-
C
To batch multiple dispatches
-
D
To throttle API polling intervals