Technical requirements
Based on what we covered in Chapter 2, Getting Started with DeFi Application Development, React.js provides the tools for building the frontend of the application, including the UI framework, state management, and URL path routing. For this chapter, we will need the following two packages specific to DeFi application development:
- Ethers.js (https://ethers.org/) is a simple and compact library for interacting with the EVM-based blockchain and its ecosystem. The main purpose of using this library in this book is to interact with smart contracts within frontend code.
- web3-react (https://github.com/Uniswap/web3-react) is a simple and powerful framework for building EVM-based decentralized applications using React. Although it does have some overlaps with ethers.js, it has its own advantages in managing DeFi wallets by providing various wallet connectors for React applications.
Note
web3-react is a widely used library for wallet integration used...