From 9c1774868d2e4efbdce698c3ab1740d81ea536e9 Mon Sep 17 00:00:00 2001 From: Juan Diaz Date: Fri, 1 Dec 2023 08:28:24 -0500 Subject: [PATCH] 30. Filter by Category && Title --- .../platzi/2023-11-15-ecommerce-react-vite-tailwind.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/_posts/platzi/2023-11-15-ecommerce-react-vite-tailwind.md b/_posts/platzi/2023-11-15-ecommerce-react-vite-tailwind.md index 9049964..e0e31e8 100644 --- a/_posts/platzi/2023-11-15-ecommerce-react-vite-tailwind.md +++ b/_posts/platzi/2023-11-15-ecommerce-react-vite-tailwind.md @@ -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