Skip to content

QuasarChains/reach-sample-react-app

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 comipile

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 48.5%
  • Shell 47.1%
  • CSS 2.0%
  • RenderScript 1.7%
  • HTML 0.7%