Skip to content

Commit

Permalink
Update 4-fetch-data-from-chain.md (#6939)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidiw authored Mar 6, 2023
1 parent 0ef568b commit 59f287d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function App (
)
```
also import `useEffect` using
```jsx import { useState, useEffect } from "react"; ```
```import { useState, useEffect } from "react"; ```
5. Our `useEffect` hook is calling a `fetchList` function; let’s create it:
Expand Down Expand Up @@ -110,8 +110,8 @@ The `client.getAccountResource()`expects an *account address* that holds the res
If the request succeeds and there is a resource for that account, we want to set our local state to `true`; otherwise, we would set it to `false`.
6. Let’s update ```jsx import { Layout, Row, Col } from "antd"; ``` to import Button:
```jsx import { Layout, Row, Col, Button } from "antd"; ```
6. Let’s update ```import { Layout, Row, Col } from "antd"; ``` to import Button:
```import { Layout, Row, Col, Button } from "antd"; ```
7. Let’s update our UI based on the `accountHasList` state:
Expand Down

0 comments on commit 59f287d

Please sign in to comment.