really stopping

This commit is contained in:
Tommy Parnell
2018-11-03 08:17:07 -04:00
parent cb50a0eeed
commit d5173dc34f
40 changed files with 10024 additions and 3965 deletions

View File

@@ -0,0 +1,21 @@
import { connect } from 'react-redux';
import HelloWorld from '../components/HelloWorld'
import { computeHelloWorldMessage, getClicks } from '../selectors/main';
import { incrementCount } from '../actions/counter.js';
export const mapStateToProps = (state) => {
return {
message: computeHelloWorldMessage(state),
clicks: getClicks(state)
}
}
export const mapDispatchToProps = dispatch => ({
incrementClick: ()=>dispatch(incrementCount())
})
export default connect(
mapStateToProps,
mapDispatchToProps,
)(HelloWorld);