We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd8cb54 commit a78552fCopy full SHA for a78552f
1 file changed
examples/react-app/src/App.tsx
@@ -19,10 +19,9 @@ function App() {
19
<div className="App">
20
<h1>Pet List</h1>
21
<ul>
22
- {data instanceof Array &&
23
- data.map((pet, index) => (
24
- <li key={pet.id + "-" + index}>{pet.name}</li>
25
- ))}
+ {data?.map((pet, index) => (
+ <li key={pet.id + "-" + index}>{pet.name}</li>
+ ))}
26
</ul>
27
<button
28
onClick={() => {
0 commit comments