Newton's Preposterous Miscalculation
Miss any of our Open RFC calls?Watch the recordings here! »

react-jazzicon

0.1.3 • Public • Published

react-jazzicon

NPM version dependencies Status devDependencies Status Known Vulnerabilities

This is a react component for Dan Finlay's jazzicon.

usage

import Jazzicon from 'react-jazzicon'
 
export default class App extends React.Component {
 
  …
 
  render() {
    return (
      <Jazzicon diameter={100} seed={Math.round(Math.random() * 10000000)} />
    )
  }
}

for Ethereum addresses

import Jazzicon, { jsNumberForAddress } from 'react-jazzicon'
 
export default class App extends React.Component {
 
  …
 
  render() {
    return (
      <Jazzicon diameter={100} seed={jsNumberForAddress('0x1111111111111111111111111111111111111111')} />
    )
  }
}

setup

$ git clone https://github.com/marcusmolchany/react-jazzicon
cd react-jazzicon
$ yarn # or npm i 

demo page

the demo page is on the gh-pages branch in the demo folder.

# first install dependencies in the top level package 
$ yarn # or npm i 
 
# then checkout the gh-pages branch and install dependencies in the "demo" folder 
$ git checkout gh-pages
cd demo && yarn # or npm i 
$ yarn start # or npm run start 

Install

npm i react-jazzicon

DownloadsWeekly Downloads

797

Version

0.1.3

License

MIT

Unpacked Size

267 kB

Total Files

13

Last publish

Collaborators

  • avatar