stateReducer
Custom state reducer function. It calculates the new state (highlighted and selected items + optional custom state) based on the previous one and the performed action.
Custom state reducer function. It calculates the new state (highlighted and selected items + optional custom state) based on the previous one and the performed action.