score:2

Accepted answer
export const add = value => ({
    type:'ADD',
    value:value
})

score:0

export const add = value =>
  ({
    type: 'ADD',
    value: value
  });

score:2

export const add = value => (dispatch) => {
    dispatch({
        type:'ADD',
        value:value
    })
}

Related Query

More Query from same tag