The error message suggest that something you think is an array is actually an object and you are trying to render that. You may have to inspect everything in that render function in SearchBar. I would start with this.props.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
const {searchresults} = this.props.searchresults
assumes that the shape of your object is:I'm not sure that's the case. Did you try
const {searchresults} = this.props;
It would help a lot with this type of questions if you could reproduce the error, put in codepen or stackblitz and share the link in your post.
error link below
thepracticaldev.s3.amazonaws.com/i...
The error message suggest that something you think is an array is actually an object and you are trying to render that. You may have to inspect everything in that render function in SearchBar. I would start with
this.props
.