When implementing Redux with NativeScript, what is the role of a 'reducer' function?
-
A
It renders UI components based on state
-
B
It takes the current state and an action and returns a new state
-
C
It dispatches actions to the store
-
D
It subscribes components to store changes