Just over a week ago I launched a new dApp called AccountPhoto. It’s an incredibly easy way to link a “photo” or “avatar” to your EOS account. Think Gravatar, but for EOS. Overall, the idea is to bring a personalized touch to EOS dApps by linking something “real” to a user’s account.

Today I’m happy to announce the arrival of accountphoto-react . This new React component makes it even easier to integrate your EOS dApp with user avatars. The best part? It only takes a couple lines of code.

Install, using NPM.

npm install accountphoto-react

2. Add to dApp, pass account name as property.

import React, { Component } from 'react'



import AccountPhoto from 'accountphoto-react'



class Example extends Component {

render () {

return (

// simply add `account` name as prop.

<AccountPhoto account={'zachzachzach'} />

// overwrite `style` by passing to component.

)

}

}

Helpful Links:

NPM: https://www.npmjs.com/package/accountphoto-react

GitHub: https://github.com/zachalam/AccountPhoto

I look forward to seeing the great ways this package is implemented to dApps throughout the EOS ecosystem. I’m sure your users will appreciate the added personalized touch.