Skip to content

Commit b9272a7

Browse files
trigger build in example vite app
1 parent 44b2263 commit b9272a7

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

examples/vite/src/App.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { useState, lazy, Suspense } from "react";
22
import reactLogo from "./assets/react.svg";
33
import viteLogo from "/vite.svg";
44
import "./App.css";
5+
import SomeComponent from "./SomeComponent";
56

67
const IndexedLazyComponent = lazy(() => import("./IndexedLazyComponent"));
78
const LazyComponent = lazy(() => import("./LazyComponent/LazyComponent"));
@@ -37,6 +38,9 @@ function App() {
3738
<Suspense fallback={null}>
3839
<LazyComponent />
3940
</Suspense>
41+
<Suspense fallback={null}>
42+
<SomeComponent />
43+
</Suspense>
4044
</>
4145
);
4246
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export default function SomeComponent() {
2+
return (
3+
<div>
4+
<h1>Some Component</h1>
5+
</div>
6+
);
7+
}

0 commit comments

Comments
 (0)