Creating the React Dapp
Last updated
Last updated
We'll create a basic React Dapp and build on it to integrate NFTs and have them playable in the game. Let's start by selecting the needed options from the stacks-starters and create the project in the root folder of the repository.
2.On the left side select React (create-react-app)
3.On the right side select
1.Connect with Wallet
2.Interact with NFTs (Non-Fungible-Tokens)
3.Call and Read from Clarity Smart-Contracts
Open a console in the root folder of the repository
windows - use cmd
mac os - use terminal
linux - use terminal
Type npm create stacks --template react-cra
Select React
and press Enter
Select CRA ( create-react-app )
Type in cmd/terminal the following:
1.cd react-cra
2.npm install
3.npm start
After npm start
a browser instance should start on localhost:3000
where you can log in with the Stacks wallet.
Screenshots from the Dapp