Setup dapp project
Last updated
Last updated
Let's start with creating a frontend project using create-react-app.
Once the command complete, start the web app:
We'll add a simple text to show the current value of the counter state.
"Inc" and "Dec" buttons to update the counter state.
Edit src/App.js
and set the App()
function looks like below:
Edit src/App.css
and add the css class CounterButton
. You can make your customizations as you like.
The webpage will be reloaded after you saved the files.
Now you can see we're having the basic page layout!
The source code of this chapter could be found at the revision fdb1b9e5f
in the source repo.