For creating cra project my-app
just run npx create-react-app my-app --template cra-dapp-template
Don't forget to create .env file with your INFURA_ID
We use:
typescript
useReducer
withuseContext
as state-managerErrorBoundary
to handle errors during render withcomponentDidCatch
react-notifications-component
to show error or success notificationsscss
to operate with csseslint
(there are some eslint/tslint rules, you may customize them in.eslintrc.js
)
In src/utils
you can find some functions that are often used in DApps.
Also, you can configure rpc urls in networkInfo
object in utils/network.ts
.
This project was made by StableUnit team.