Skip to content

Commit

Permalink
30. Filter by Category && Title
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanPabloDiaz authored Dec 1, 2023
1 parent da2f6fe commit 9c17748
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions _posts/platzi/2023-11-15-ecommerce-react-vite-tailwind.md
Original file line number Diff line number Diff line change
Expand Up @@ -3342,6 +3342,16 @@ export default App;
## III. Modify the `Context` file
By adding all the logic to filter the render products by `title`, `category`, `title and category`.
In other words, render the view depending on the action:
- Display all the products with NO filters.
- Display product/s when searching (filtering `title`)
- Display product/s by filtering `category`
- Display by filtering `title and category`
Located in `src/Context/index.jsx`
```jsx
Expand Down

0 comments on commit 9c17748

Please sign in to comment.