Skip to content

Commit 3679bd7

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

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

  • packages/create-vite

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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 2 additions & 2 deletions
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)