title: Attempted import error: './movieReducer' does not contain a default export (imported as 'movieReducer')
body: <p>I'm starting learn React + Redux , I'm doing a simple application for add or remove a movie in a basket.</p>
  
  <p>But I have a problem on a reducer . I try a lot of things without result...</p>
  
  <p>Thanks in advance :)</p>
  
  <p>Here is my code : </p>
  
  <p>The reducer :</p>
  
  <pre><code>import '../actions/actionsTypes';
  
  import { movies } from '../components/movie/data.json';
  
  let initialState = []
  
  movies.map((movie) =&gt; {
  initialState.push({
  id : movie.id,
  title: movie.title,
  year: year.title,
  isAdd: false,
  isRemove: false
  })
  return movie
  })
  
  const establishment = (state = {}, action) =&gt; {
  
      switch (action.type) {
  
          case ADD :
  
            if (state.id !== action.data.id)
                 return state
  
  
          return (
            ...state,
            isAdd : !state.isAdd
  
          )
  
          case REMOVE :
            if (state.id !== action.data.id)
              return state
  
              return (
                ...state,
                isRemove : !state.isRemove
  
              )
  
          default:
            return state
      }
  
  }
  
  const establishmentsReducer = (state = initialState, action) =&gt; {
  
      switch (action.type) {
  
          case ADD :
            return state.map(movieState =&gt;
              movie(movieState, action)
            )
  
  
          case REMOVE :
            return state.map(movieState =&gt;
                movie(movieState, action)
            )
  
          default:
            return state
  
      }
  
  }
  
  export default movieReducer;
  </code></pre>
  
  <p>The connection of the reducer ( I know it's not useless but in the furtur will have to combine reducer ) : </p>
  
  <pre><code>import { combineReducers } from 'redux';
  
  import movieReducer from './movieReducer';
  
  
  const allReducers = combineReducers({
  movie : movieReducer
  })
  
  export default allReducers;
  </code></pre>
  
  <p>index.js : </p>
  
  <pre><code>import React from 'react';
  import ReactDOM from 'react-dom';
  
  import { createStore } from 'redux';
  import { Provider } from 'react-redux';
  
  import allReducers from './reducers';
  
  import './index.css';
  import App from './components/App';
  import * as serviceWorker from './serviceWorker';
  
  
  const store = createStore(allReducers);
  
  ReactDOM.render(
    &lt;Provider store={ store }&gt;
    &lt;App/&gt;
    &lt;/Provider&gt;,
    document.getElementById('root')
  
  )
  </code></pre>