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