import HashHero from 'hash-heroes'
export default class App extends React.Component {
…
render() {
return (
<HashHero seed={address} scalingFactor={4} />
)
}
}
$ git clone https://github.com/khakiprojects/hash-heroes
$ cd hashheroes
$ npm i
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
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