📅  最后修改于: 2022-03-11 15:02:49.707000             🧑  作者: Mango
const SearchBar = ({ searchQuery }) =>
searchQuery(event.target.value)} placeholder="Search for items or sellers" />
const mapStateToProps = () => {
return {
}
}
const mapDispatchToProps = (dispatch) => {
return {
searchQuery: (val) => dispatch(searchQuery(val))
}
}
export default connect(mapStateToProps, mapDispatchToProps)(SearchBar);