Skip to content

Commit c232c64

Browse files
committed
fix(redirects): update 308 redirects
1 parent 0602c50 commit c232c64

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/network/guides/flare-for-react-developers.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ This guide is for React developers who want to interact with Flare using [Wagmi]
2222

2323
The package provides two ways to read and write Flare contracts:
2424

25-
- **Generic hooks:** use Wagmi's [`useReadContract`](https://wagmi.sh/react/hooks/useReadContract) with typed ABIs imported from the Flare Wagmi Periphery package.
25+
- **Generic hooks:** use Wagmi's [`useReadContract`](https://wagmi.sh/react/api/hooks/useReadContract) with typed ABIs imported from the Flare Wagmi Periphery package.
2626
- **Contract-specific hooks:** use auto-generated hooks like `useReadIFlareContractRegistry` that already know the ABI.
2727

2828
In this guide, you will set up a React project, configure Wagmi for Flare, and query the [`WNat`](/network/solidity-reference/IWNat) contract address from the [`FlareContractRegistry`](/network/solidity-reference/IFlareContractRegistry) using both approaches.
@@ -95,7 +95,7 @@ The example below queries the [`FlareContractRegistry`](/network/solidity-refere
9595

9696
It demonstrates both approaches to query the contract data:
9797

98-
- **Generic hooks:** use Wagmi's [`useReadContract`](https://wagmi.sh/react/hooks/useReadContract) with typed ABIs imported from the Flare Wagmi Periphery package.
98+
- **Generic hooks:** use Wagmi's [`useReadContract`](https://wagmi.sh/react/api/hooks/useReadContract) with typed ABIs imported from the Flare Wagmi Periphery package.
9999
- **Contract-specific hooks:** use auto-generated hooks like `useReadIFlareContractRegistry` that already know the ABI.
100100

101101
```typescript title="src/WNatQuery.tsx"
@@ -190,7 +190,7 @@ The app will query the [`FlareContractRegistry`](/network/solidity-reference/IFl
190190

191191
### Generic hooks
192192

193-
The generic approach uses the [`useReadContract`](https://wagmi.sh/react/hooks/useReadContract) hook from Wagmi.
193+
The generic approach uses the [`useReadContract`](https://wagmi.sh/react/api/hooks/useReadContract) hook from Wagmi.
194194
You import the typed ABI (`iFlareContractRegistryAbi`) from the package and pass it as the `abi` prop.
195195
This gives you complete type safety for `functionName` and `args`.
196196

0 commit comments

Comments
 (0)