Skip to content

Commit 3679bd7

Browse files
authored
chore(create-vite): remove wrapper div for react template (#12867)
1 parent 3334660 commit 3679bd7

File tree

2 files changed

+4
-4
lines changed
  • packages/create-vite

2 files changed

+4
-4
lines changed

packages/create-vite/template-react-ts/src/App.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function App() {
77
const [count, setCount] = useState(0)
88

99
return (
10-
<div>
10+
<>
1111
<div>
1212
<a href="https://vitejs.dev" target="_blank">
1313
<img src={viteLogo} className="logo" alt="Vite logo" />
@@ -28,7 +28,7 @@ function App() {
2828
<p className="read-the-docs">
2929
Click on the Vite and React logos to learn more
3030
</p>
31-
</div>
31+
</>
3232
)
3333
}
3434

packages/create-vite/template-react/src/App.jsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ function App() {
77
const [count, setCount] = useState(0)
88

99
return (
10-
<div>
10+
<>
1111
<div>
1212
<a href="https://vitejs.dev" target="_blank">
1313
<img src={viteLogo} className="logo" alt="Vite logo" />
@@ -28,7 +28,7 @@ function App() {
2828
<p className="read-the-docs">
2929
Click on the Vite and React logos to learn more
3030
</p>
31-
</div>
31+
</>
3232
)
3333
}
3434

0 commit comments

Comments
 (0)