A few things I noticed right away with your sample code:
First of all, the function connectrequires some parameters in the first bracket, even if this parameter is null, also I do not think that you need the brackets in the export line. Try replacing these last two lines with something like this:
export default connect(null)(SearchBar);
look, it doesnโt matter.
source
share