From eb51de2c593e80d954f04a5a69628a22ebf5c605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CZuzana?= <122124249+zuzmoskvic@users.noreply.github.com> Date: Wed, 23 Jul 2025 16:43:49 +0200 Subject: [PATCH 01/10] Iteration 1 --- src/App.js | 28 ++++++---------------------- src/components/ProductRow.js | 8 ++++++++ src/components/ProductTable.js | 10 ++++++++++ src/components/ProductsPage.js | 11 +++++++++++ src/components/SearchBar.js | 8 ++++++++ 5 files changed, 43 insertions(+), 22 deletions(-) create mode 100644 src/components/ProductRow.js create mode 100644 src/components/ProductTable.js create mode 100644 src/components/ProductsPage.js create mode 100644 src/components/SearchBar.js diff --git a/src/App.js b/src/App.js index 378457572..df89ecd78 100644 --- a/src/App.js +++ b/src/App.js @@ -1,25 +1,9 @@ -import logo from './logo.svg'; -import './App.css'; +import "./App.css"; +import ProductsPage from "./components/ProductsPage"; function App() { - return ( -
- Edit src/App.js and save to reload.
-
ProductRow
+ProductTable:
+SearchBar
+Test change
ProductRow
+{oneProduct.name}
ProductTable:
-ProductsPage
Test change
-ProductRow
-{oneProduct.name}
-ProductTable:
- {jsonData.map((product) => { +| Name | +Price | +
|---|
ProductsPage
| Name | Price |
|---|
| Price |
|---|
SearchBar
+ +| Name | -Price | -
|---|
| Name | +Price | + + + {products + .filter((product)=>product.name.toLowerCase().includes(searchValue.toLowerCase())) + .map((product)=>
|---|