DEV Community

Discussion on: NGRX Workshop Notes - Meta-Reducers

Collapse
 
amirensit profile image
choubani amir

How to understand this line ?
const logger = (reducer: ActionReducer) => (state: any, action: Action) => { }
There is two "=>".
Any idea ?

Collapse
 
docker1 profile image
Agafonov Vladislav

function accepting reducer returns function that accepts state and action and returns new state?🤷‍♂️