Skip to content

Commit 2aff461

Browse files
committed
docs: tweaks
1 parent c00dc5d commit 2aff461

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/react/api/hooks/useBlock.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,16 @@ Whether or not to include transactions as objects.
140140

141141
::: code-group
142142
```tsx [index.tsx]
143-
import { getBlock } from '@wagmi/core'
143+
import { useBlock } from 'wagmi'
144144
import { config } from './config'
145145

146-
const blockNumber = await getBlock(config, {
147-
includeTransactions: true // [!code focus]
148-
})
146+
function App() {
147+
const result = useBlock({
148+
includeTransactions: true // [!code focus]
149+
})
150+
}
149151
```
150-
<<< @/snippets/core/config.ts[config.ts]
152+
<<< @/snippets/react/config.ts[config.ts]
151153
:::
152154

153155
### watch

0 commit comments

Comments
 (0)