title: redux reducer returned undefined handling
body: <p>My reducers like:</p>
  
  <pre><code>const initialState = [
    {
      fname: null,
      lname: false,
    }
  ]
  
  export default function login(state = initialState, action) {
    switch (action.type) {
      case LOGIN:
        console.log("actions")
        console.log(action)
        console.log("reducers")
          return 
          [{
            fname: action.fname,
            lname: action.lname,
            }]
      default:
        return state
    }
  }
  </code></pre>
  
  <p>Here I am getting action object with <code>fname</code> and <code>lname</code> but this is giving me error saying .. <code>Uncaught Error: Reducer "login" returned undefined handling "LOGIN". To ignore an action, you must explicitly return the previous state.</code></p>
  
  <p>Why I am getting this error ?</p>