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.
Suspense
1 parent 5ed243d commit 7e0eea9Copy full SHA for 7e0eea9
README.md
@@ -112,15 +112,11 @@ To check if data is loaded use the
112
```javascript
113
import React, { Suspense } from 'react';
114
115
-const MyComponent = () => {
116
- return (
117
118
- <Suspense fallback={<div>Loading...</div>}>
119
- <Dogs />
120
- </Suspense>
121
- )
122
- );
123
-}
+const MyComponent = () => (
+ <Suspense fallback={<div>Loading...</div>}>
+ <Dogs />
+ </Suspense>
+);
124
```
125
126
Alternatively you can use the `useQuery` hook without suspense with the
0 commit comments