File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 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 ;
You can’t perform that action at this time.
0 commit comments