You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/injective/README.md
+46-1Lines changed: 46 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
# Injective React Example
2
+
1
3
## Getting Started
2
4
3
5
First, install the packages and run the development server:
@@ -10,7 +12,50 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the
10
12
11
13
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file.
12
14
13
-
## Learn More
15
+
## Overview
16
+
17
+
This example demonstrates how to build a React application that interacts with the Injective blockchain. By following this guide, you will learn how to set up a development environment, use React hooks, and integrate various Cosmos ecosystem tools to enhance your application.
18
+
19
+
## Query and Tx Hooks
20
+
21
+
This example uses the query hooks(e.g. useGetBalance) and tx hooks(e.g. useSend) from the `injective-react` package to interact with the Injective blockchain. These hooks allow you to query data from the blockchain and send transactions to the blockchain.
For more information on how to use these hooks, please refer to the [injective-react](https://github.com/cosmology-tech/interchainjs/tree/main/libs/injective-react)
0 commit comments