I'm trying to return the following in my reducer (react-redux) and it's giving me a syntax error:
return { ...state, loginForm.email: action.payload.email }
state = { loginForm: { email: '', password: '' } } so on
I have babel preset stage 0 installed and es2015. This works fine:
return { ..state, loginForm: action.payload }