mirror of
https://github.com/Instadapp/vue-web3.git
synced 2024-07-29 21:48:25 +00:00
Update README.md
This commit is contained in:
parent
2daca3af95
commit
acc6b9ac55
14
README.md
14
README.md
|
@ -75,12 +75,26 @@ yarn add @instadapp/vue-web3-nuxt -D
|
|||
```
|
||||
|
||||
```ts
|
||||
// nuxt.config.ts
|
||||
export default defineNuxtConfig({
|
||||
modules: [
|
||||
'@instadapp/vue-web3-nuxt'
|
||||
],
|
||||
web3 :{
|
||||
autoImport: false, // default `true`
|
||||
}
|
||||
})
|
||||
```
|
||||
If you disabled `@instadapp/vue-web3-nuxt` auto import:
|
||||
```ts
|
||||
//composables/useWeb3.ts
|
||||
import Web3 from "web3";
|
||||
import { useWeb3 as useWeb3Generic } from "@instadapp/vue-web3";
|
||||
|
||||
const useWeb3 = () => useWeb3Generic<Web3>();
|
||||
|
||||
export { useWeb3 };
|
||||
```
|
||||
|
||||
<br />
|
||||
---
|
||||
|
|
Loading…
Reference in New Issue
Block a user