Open alexandratran opened 1 year ago
I want to create a tutorial using React that goes beyond the basics of getting started.
The steps in this tutorial would be to clone an existing React repo that is a basic starting point so that they don't have to set up React.
Build a basic connect button. Show the connected account's address & balance
Then implement MetaMask SDK to ensure that the user can connect to MetaMask Extension or Mobile
Finally, we would add the required steps to keep the dApp in sync with the wallet's state using:
Once they have completed the tutorial, they will have a working React application that implements the wallet that has changed and that the corresponding React components instantly reflect those new changes. We can switch them to it if they are not on the correct chain.
The tutorial could be in several steps, each going further into what you need to know to start building a real-world application.
Of course, as I start to build this out, the steps could play out slightly differently. But this is my initial proposal. Building up their knowledge in steps.
The legacy simple dapp tutorial is incomplete and based on sample project files that seem unmaintained. I walked through this tutorial and ran into various issues. The tutorial only covers connecting to MetaMask + getting accounts, and I was unsuccessful at both tasks using these instructions.
I also followed a series of dapp tutorials on YouTube (first tutorial here) walking through how to perform several different tasks, and these worked great.
This issue is to replace the legacy dapp tutorial with a working tutorial that enables users to integrate a dapp with MetaMask to perform meaningful tasks. Note that I recently added a simple get started guide in the docs (see #28), so the dapp tutorial would need to extend upon this or perform additional functions.