본문 바로가기

basic/React.js

[ERROR] Redux ... Reducer "user" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value f..

undefined로 할당하지말라고 나오는 문구로

할당을 안해주면 일어나는 실수!!!

 

null이라도 넣어주면 해결 끝