How to avoid this kind of warning?
It gives warning like below.
Unexpected default export of anonymous function import/no-anonymous-default-exp
This is the function which gives warning.
import { FETCH_USER } from '../actions/types';
export default function(state = null, action){
switch(action.type) {
case FETCH_USER:
return action.payload || false ;
default:
return state;
}
}