Skip to content

Commit bcdcc45

Browse files
committed
Update
1 parent 5326c67 commit bcdcc45

File tree

6 files changed

+29
-4
lines changed

6 files changed

+29
-4
lines changed

React_Learning/02_cart/src/Cart.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import profilePic from './assets/Update.jpg';
22
function Cart() {
33
return (
44
<>
5-
<div className="w-48 border p-5 m-5 shadow-2xl rounded-md inline-block ">
5+
<div className="w-48 border p-5 m-5 shadow-2xl rounded-2xl inline-block ">
66
<img
77
src={profilePic}
88
alt="Profile Picture"

React_Learning/07_tollPlaza/src/TollPlaza.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,9 @@ function TollPlaza() {
6666
type="number"
6767
name="amount"
6868
className="border-2 p-2 text-lg font-bold"
69-
value={amount || ''} // Set input value to amount state or empty string to clear field
69+
value={amount || ''}
7070
onChange={handleBalance}
71+
required
7172
/>
7273
<div className="flex items-center justify-center my-10">
7374
<select

React_Learning/14_UpdateArray/src/App.jsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
import UpdateArray from '../UpdateArray';
2+
import Flex from './Flex';
23
import UpdateArrayOfObject from './UpdateArrayOfObject';
34
// import './App.css';
45

56
function App() {
67
return (
78
<>
89
{/* <UpdateArray /> */}
9-
<UpdateArrayOfObject />
10+
{/* <UpdateArrayOfObject />
11+
*/}
12+
<Flex />
1013
</>
1114
);
1215
}

React_Learning/14_UpdateArray/src/UpdateArrayOfObject.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function UpdateArrayOfObject() {
1111
make: carMake,
1212
model: carModel,
1313
};
14-
setCars((c) => [...c, newCar]);0--
14+
setCars((c) => [...c, newCar]);
1515
};
1616
const handleRemoveCar = (index) => {};
1717
const handleYearChange = (event) => {
File renamed without changes.

React_Learning/flex.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta
6+
name="viewport"
7+
content="width=device-width, initial-scale=1.0" />
8+
<title>Document</title>
9+
</head>
10+
<body>
11+
<div>1</div>
12+
<div>2</div>
13+
<div>3</div>
14+
<div>4</div>
15+
<div>5</div>
16+
<div>6</div>
17+
<div>7</div>
18+
<div>8</div>
19+
<div>9</div>
20+
</body>
21+
</html>

0 commit comments

Comments
 (0)