https://stackblitz.com/edit/react-redux-realworld-radssv?file=containers/Channel.js
const mapDispatchToProps = (dispatch, ownProps) => ({
onClick: () => {
dispatch(getChannel(ownProps.channelString));
if (localStorage.clickcount) {
localStorage.clickcount = Number(localStorage.clickcount) + 1;
console.log("localStorage.clickcount--->", localStorage.clickcount);
}
}
}