This project was bootstrapped with Create React App. It shows some simple React examples using AlgoSigner. For more examples using AlgoSigner, see https://purestake.github.io/algosigner-dapp-example.
In the project directory, you can run:
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
You will also see any lint errors in the console.
You need to have the AlgoSigner Chrome extension installed.
- The interesting part is in the file src/App.js.
- Note that contrary to https://purestake.github.io/algosigner-dapp-example, we use
async/await
to process the results of AlgoSigner. Using the.then/.catch
would also be possible. - The ESLint in package.json configuration has been changed to include
no-undef
, hence the top comment inApp.js
(/* global AlgoSigner */
) to tell ESLint that theAlgoSigner
global element exists. - The project uses Semantic UI React. It was installed
using
yarn add semantic-ui-react semantic-ui-css
and addingimport 'semantic-ui-css/semantic.min.css';
to src/index.js.
You may see a warning about findDOMNode
being deprecated in StrictMode
, most likely because
of Semantic-Org/Semantic-UI-React#3819.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.