<file_sep>import { createStore, combineReducers, applyMiddleware } from "redux";
import createSagaMiddleware, { SagaMiddleware } from "redux-saga";
import { movieReducer } from "../movie/state/reducer";
import movieRootSaga from "../movie/state/saga";

export const configureStore = () => {
    const rootReducer = combineReducers({
        movieReducer
    })
const sagaMiddleware = createSagaMiddleware();

const store = createStore(rootReducer, applyMiddleware(sagaMiddleware));
  registerSagas(sagaMiddleware);
  store.replaceReducer(rootReducer);

return store;
};
    
const registerSagas = (sagaMiddleware: SagaMiddleware<any>) => {
    sagaMiddleware.run(movieRootSaga);
}
<file_sep>import {connect} from 'react-redux';
import { bindActionCreators } from 'redux';
import Movies from '../pages/Movies';
import { fetchMovieListRequested } from '../state/actions/movie-list.action';
  
export const mapStateToProps = (state: any) => { 
    return {
        movieList: state.movieReducer.movieList
    }
} 
 
export const mapDispatchToProps = (dispatch: any, getState: any) => {
    return  {
        dispatchers : bindActionCreators( {fetchMovieListRequested}, dispatch )
    }
}
export default connect(mapStateToProps, mapDispatchToProps) (Movies);  