Relative Content

Tag Archive for reactjsfilter

Return products that contain string clicked

I’m trying to practice React by building a kind of ecommerce template and I’m currently experimenting with filtering products that contain the word/string clicked in a filter section.

Value Searching Array

I had this working but I guess I broke something, I am attempting to search by value. I am currently receiving the following error. Uncaught TypeError: Cannot read properties of undefined (reading 'localeCompare') when running the following code. Im kinda stumped at this point and I just don’t know what to do at this point.

I can’t filter movies in react js

I’m creating a movie app with the TMDB API in React. I need to filter movies or TV shows by genres and also sort movies. My code captures the selected genre or sort_by value, but it doesn’t display movies with that genre. I’m having trouble identifying the issue.
Any help would be appreciated.