Skip to content

Commit 255ae3d

Browse files
committed
fix My Toaster
1 parent ae70a48 commit 255ae3d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/All Assessment/assessment21/MyToaster.jsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from "react";
2+
import GoToHome from "../../Components/GoToHome"
23

34
const MyToaster = () => {
45
const [toast, setToast] = React.useState([]);
@@ -25,8 +26,9 @@ const MyToaster = () => {
2526
</div>
2627
)}
2728
</div>
28-
<h1>Hello React.</h1>
29-
<button onClick={handleClick}>Click Me To Show Toaster</button>
29+
<GoToHome/>
30+
<h1>Toaster By sameerkali</h1>
31+
<button style={{backgroundColor: '#ccc'}} onClick={handleClick}>Click Me To Show Toaster</button>
3032
</div>
3133
);
3234
};

0 commit comments

Comments
 (0)