We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99a26f0 commit 79deb86Copy full SHA for 79deb86
vite-project/src/App.jsx
@@ -1,6 +1,6 @@
1
import { useState } from 'react'
2
import './App.css'
3
-
+import Header from './componets/Header';
4
function App() {
5
const [count, setCount] = useState(0)
6
@@ -10,6 +10,9 @@ function App() {
10
11
return (
12
<>
13
+ <div>
14
+ <Header />
15
+ </div>
16
<button onClick={cntfn}> counter {count}</button>
17
</>
18
)
vite-project/src/componets/Header.jsx
@@ -0,0 +1,28 @@
+import React from 'react';
+
+const Header = () => {
+ return (
+ <header>
7
8
+ <nav>
9
+ <ul>
+ <li>
+ Home
+ </li>
+ Technology
+ Travel
19
20
+ Lifestyle
21
22
+ </ul>
23
+ </nav>
24
+ </header>
25
+ );
26
+};
27
28
+export default Header;
0 commit comments