import React from "react" ; import { connect } from "react-redux" ; import { reset } from "../actions" ; const mapStateToProps = undefined ; const mapDispatchToProps = dispatch => ( { handleClick ( e ) { e . preventDefault ( ) ; dispatch ( reset ( ) ) ; } } ) ; const Reset = ( { handleClick } ) => { return ( < li > < a href = "#" onClick = { e => handleClick ( e ) } > Reset < /a> < /li>); } ; export default connect ( mapStateToProps , mapDispatchToProps ) ( Reset ) ;