Creating the React Dapp
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.
Stacks Starters Website
Section titled “Stacks Starters Website”-
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
- 1.

Console Local Project
Section titled “Console Local Project”-
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
Reactand pressEnter
-
Select CRA ( create-react-app )

-
Type in cmd/terminal the following:
- 1.cd react-cra
- 2.npm install
- 3.npm start
Expected Dapp View
Section titled “Expected Dapp View”After npm start a browser instance should start on localhost:3000 where you can log in with the Stacks wallet.
Screenshots from the Dapp

Log-In View

Logged In View