Skip to content

Instantly share code, notes, and snippets.

@bguiz
Created March 12, 2019 07:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bguiz/d9737ab76bf58ab20b4884f3f15bcb39 to your computer and use it in GitHub Desktop.
Save bguiz/d9737ab76bf58ab20b4884f3f15bcb39 to your computer and use it in GitHub Desktop.

Get the git repo

git clone git@github.com:dapps-dev-club/blockchain-demo.git
cd blockchain-demo
git fetch origin feat/codestate:feat/codestate
git checkout feat/codestate

Install and start

npm install
npm run start
# open http://localhost:3000/

Code:

const x = (state.x || 0) + args[0];
return { ...state, x };

Arguments:

[1]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment