@jsdev_ninja/core 0.6.5 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/App.tsx +26 -30
package/package.json
CHANGED
package/src/App.tsx
CHANGED
|
@@ -1,35 +1,31 @@
|
|
|
1
|
-
import { useState } from
|
|
2
|
-
import reactLogo from
|
|
3
|
-
import viteLogo from
|
|
4
|
-
import
|
|
1
|
+
import { useState } from "react";
|
|
2
|
+
import reactLogo from "./assets/react.svg";
|
|
3
|
+
import viteLogo from "/vite.svg";
|
|
4
|
+
import "./App.css";
|
|
5
5
|
|
|
6
6
|
function App() {
|
|
7
|
-
|
|
7
|
+
const [count, setCount] = useState(0);
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
Click on the Vite and React logos to learn more
|
|
30
|
-
</p>
|
|
31
|
-
</>
|
|
32
|
-
)
|
|
9
|
+
return (
|
|
10
|
+
<>
|
|
11
|
+
<div>
|
|
12
|
+
<a href="https://vitejs.dev" target="_blank">
|
|
13
|
+
<img src={viteLogo} className="logo" alt="Vite logo" />
|
|
14
|
+
</a>
|
|
15
|
+
<a href="https://react.dev" target="_blank">
|
|
16
|
+
<img src={reactLogo} className="logo react" alt="React logo" />
|
|
17
|
+
</a>
|
|
18
|
+
</div>
|
|
19
|
+
<h1>Vite + React</h1>
|
|
20
|
+
<div className="card">
|
|
21
|
+
<button onClick={() => setCount((count) => count + 1)}>count is {count}</button>
|
|
22
|
+
<p>
|
|
23
|
+
Edit <code>src/App.tsx</code> and save to test HMR
|
|
24
|
+
</p>
|
|
25
|
+
</div>
|
|
26
|
+
<p className="read-the-docs">Click on the Vite and React logos to learn more</p>
|
|
27
|
+
</>
|
|
28
|
+
);
|
|
33
29
|
}
|
|
34
30
|
|
|
35
|
-
export default App
|
|
31
|
+
export default App;
|