Skip to content

Commit a78552f

Browse files
committed
chore: update example
1 parent fd8cb54 commit a78552f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

examples/react-app/src/App.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ function App() {
1919
<div className="App">
2020
<h1>Pet List</h1>
2121
<ul>
22-
{data instanceof Array &&
23-
data.map((pet, index) => (
24-
<li key={pet.id + "-" + index}>{pet.name}</li>
25-
))}
22+
{data?.map((pet, index) => (
23+
<li key={pet.id + "-" + index}>{pet.name}</li>
24+
))}
2625
</ul>
2726
<button
2827
onClick={() => {

0 commit comments

Comments
 (0)