Sometimes reducers get kind of messy:
const initialState = { notificationBar: { open: false, }, }; export default function (state = initialS
UPD: it's now a part of the ES2018
It might be slightly improved via a non-standardised yet properties spread syntax:
return { ...state, notificationBar: { ...state.notificationBar, open: true, }, };