AllanMangeni / reach-sample-react-app

A simple example of how to use Reach with React.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reach-sample-react-app

This is a sample React app that uses Reach to generate, deploy, and interact with a smart contract on Ethereum.

Prerequisites:

  • Install and run the Ganache app on localhost:8545
    • configure it so the first user has a lot of ETH
  • Install the MetaMask extension on both Chrome and Firefox.
  • Install nvm and use it to install & use node 12.18.3 or higher

To see the demo in action:

npm install   # this may take 5-15 mins to install
npm run start # this may take a minute to compile

Open http://localhost:3000 in both Firefox and Chrome; run the app as Alice on one, and Bob on the other.

If you modify src/index.rsh, you must run the compile-rsh script so that React will pick up the changes:

npm run compile-rsh

About

A simple example of how to use Reach with React.js


Languages

Language:JavaScript 48.5%Language:Shell 47.1%Language:CSS 2.0%Language:RenderScript 1.7%Language:HTML 0.7%