this repo has no description
1import { useState } from "react";
2
3function Counter() {
4 const [count, setCount] = useState(0);
5
6 return (
7 <div>
8 <h1>{count}</h1>
9 <button onClick={() => setCount(count + 1)}>up</button>
10 </div>
11 );
12}
13function MainContent() {
14 return (
15 <main style={{ padding: "20px", textAlign: "center", minHeight: "400px" }}>
16 <h2>Welcome to My Website</h2>
17 <p>This is a simple React app demonstrating component structure.</p>
18 <Counter />
19 </main>
20 );
21}
22
23export default MainContent;