https://github.com/gimenete/identicons-react
React component for generating identicons
https://github.com/gimenete/identicons-react
Last synced: about 2 months ago
JSON representation
React component for generating identicons
- Host: GitHub
- URL: https://github.com/gimenete/identicons-react
- Owner: gimenete
- Created: 2015-12-13T18:09:33.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-12-13T18:10:12.000Z (over 9 years ago)
- Last Synced: 2025-01-22T12:11:25.021Z (4 months ago)
- Language: JavaScript
- Size: 144 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# identicons-react
Simple module to create SVG identicons like the ones used by [GitHub](https://github.com/blog/1586-identicons).

## Installing
```
npm install identicons-react --save
```## Usage
```html
```### Plain JavaScript
```javascript
var React = require('react')
var ReactDOM = require('react-dom')
var Identicons = require('identicons-react')var mountNode = document.getElementById('identicon')
ReactDOM.render(React.createElement(Identicons, { id: '[email protected]', width: 200, size: 5 }), mountNode)
```### Using JSX
```javascript
var React = require('react')
var ReactDOM = require('react-dom')
var Identicons = require('identicons-react')var mountNode = document.getElementById('identicon')
ReactDOM.render(, mountNode)
```