hash-heroes
v1.0.8
Published
Icon library for Ethereum addresses.
Downloads
13
Maintainers
Readme
hash-heroes
usage
import HashHero from 'hash-heroes'
export default class App extends React.Component {
…
render() {
return (
<HashHero seed={address} scalingFactor={4} />
)
}
}
setup
$ git clone https://github.com/khakiprojects/hash-heroes
$ cd hashheroes
$ npm i
local development
webpack-dev-server is used for local development. the following command will start a dev server, and
serve the files from the example
folder.
$ npm run dev # or $ yarn dev
demo page
the demo page is on the gh-pages
branch in the demo
folder.
# first install dependencies in the top level package
$ npm i # or yarn
# then checkout the gh-pages branch and install dependencies in the "demo" folder
$ git checkout gh-pages
$ cd demo && npm i # or yarn
$ npm run start # or yarn start