August 2017
Beginner
374 pages
10h 41m
English
Next, we need to adjust the state selector. In our case, we have already done that. In src/containers/ConnectedCounter.jsx, we would have to adjust our selector in the mapStateToProps function:
const mapStateToProps = (state, props) => { const { counter } = state return { count: counter && counter.present }}
Ensure that the highlighted code in the preceding code is present.
Read now
Unlock full access