A handy template for a quick start of a React project using Vite and Web3React with ethers.js
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
You can start working on building UI for dApps right away with this template made with Vitejs and Web3React(ethers.js)
You can use this template for a quick start without configuration of Vite and Web3React in React project.
You can also refer to sample components under src/components/
directory.
This component shows how to implement connect/disconnect button for MetaMask browser extension.
This component shows how to interact with contracts using useContract
hook.
- Clone the repo
or Press
git clone https://github.com/masafumimori/vite-ethersjs-template
Use this template
button at the top right on this page. - Install NPM packages
npm install or yarn install
- Start the project
npm run dev or yarn dev
- To build, run
npm run build or yarn build
To lint, run
npm run lint
or
yarn lint
To format, run
npm run format
or
yarn format
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Masafumi Mori - m.masasafumi[at]outlook.com
Project Link: https://github.com/masafumimori/vite-ethersjs-template