Skip to content

Commit 030ba59

Browse files
chore: rspack direct
1 parent 3a51e73 commit 030ba59

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

esm/rspack/src/other.jsx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import React from "react";
2+
import { useState } from "react";
3+
import reactLogo from "./assets/react.svg";
4+
import "./App.css";
5+
6+
function App() {
7+
const [count, setCount] = useState(0);
8+
9+
return (
10+
<div className="App">
11+
<div>
12+
<a href="https://reactjs.org" target="_blank" rel="noreferrer">
13+
<img src={reactLogo} className="logo react" alt="React logo" />
14+
</a>
15+
</div>
16+
<h1>Rspack + React</h1>
17+
<div className="card">
18+
<button type="button" onClick={() => setCount(count => count + 1)}>
19+
count is {count}
20+
</button>
21+
<p>
22+
Edit <code>src/App.jsx</code> and save to test HMR
23+
</p>
24+
</div>
25+
<p className="read-the-docs">
26+
Click on the Rspack and React logos to learn more
27+
</p>
28+
</div>
29+
);
30+
}
31+
32+
export default App;

0 commit comments

Comments
 (0)