Closed
Description
remove bindActionCreators
boilerplate using object literal with actions instead of mapDispatchToProps
function
const stateToProps = (storeState: IRootReducer) => ({
currencyRates: storeState.currencyRates,
currencyConverter: storeState.currencyConverter
});
const actionsToProps = Object.assign({}, currencyConverterActions);
export default connect(stateToProps, actionsToProps)(CurrencyConverterContainer);