I am trying to understand how popular projects works.

Here is what i've found in uniswap interface's source code:


import { useWeb3React as useWeb3ReactCore } from '@web3-react/core'

And here is what i've found in aave interface's source code:


import { useWeb3Context } from 'web3-react'

What is the difference between those 2 libraries ?

Thanks a lot

  • Most likely historically differently named package Jan 21 '21 at 9:51
  • What is the newest one ? And to be sure, can you confirm me we can install with "yarn add web3" ?
    – Bob5421
    Jan 21 '21 at 13:05
  • My comment was speculative, as I hope it is up to you to verify this from the authors of packages from yourself. Jan 21 '21 at 14:27

According to npmjs.com web3-react is the parent of web3-react/core and both pages point to the same github repo: web3-react

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.