added footer and header

This commit is contained in:
Stage2 committed 2026-06-23 16:05:51 +02:00
1 parent b43c9989f4
commit 86933e15c0
3 files changed
+42 -29

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
function Footer() {
return (
<div id="foot">
<h3>The react project</h3>
</div>
);
}
export default Footer;
+24
View File
@@ -0,0 +1,24 @@
import { useState } from "react";
function Header() {
const [count, setCount] = useState(0);
return (
<section id="center">
<div>
<h1>The react project</h1>
<p>
Edit <code>src/App.jsx</code> and save to test <code>HMR</code>
</p>
</div>
<button
type="button"
className="counter"
onClick={() => setCount((count) => count + 1)}
>
Count is {count}
</button>
</section>
);
}
export default Header;