我试图了解流行的项目是如何工作的。
下面是我在uniswap接口的源代码中发现的内容:
https://github.com/Uniswap/uniswap-interface/blob/master/src/hooks/index.ts:
import { useWeb3React as useWeb3ReactCore } from '@web3-react/core'下面是我在aave界面的源代码中发现的:
https://github.com/aave/uniswap-frontend/blob/beta/src/hooks/index.js
import { useWeb3Context } from 'web3-react'这两个库之间有什么区别?
非常感谢
发布于 2021-04-23 19:07:49
根据npmjs.com,web3-react是web3-repo/core的父级,两个页面都指向相同的github:Web3-反应。
发布于 2023-01-18 06:40:53
在我看来,web3-react是以前的版本,@web3-react/core是当前的版本。
web3-react以版本5.0.5 @web3-react/core结束,从版本6.0.0-beta.0开始。
https://ethereum.stackexchange.com/questions/92591
复制相似问题