---
title: "Discussion on \"Creating an avatar based in the user name with React\" | Hashnode"
description: "Discussion on \"Creating an avatar based in the user name with React\". Fetching a user avatar field sometimes can come empty from the API we are using. Let's give it some style using their names as avatar."
url: "https://hashnode.com/posts/creating-an-avatar-based-in-the-user-name-with-react/62afaf5dd8afe74aa51fe22d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Creating an avatar based in the user name with React](https://jcruz.hashnode.dev/creating-an-avatar-based-in-the-user-name-with-react?utm_source=hashnode&utm_medium=feed)

Fetching a user avatar field sometimes can come empty from the API we are using. Let's give it some style using their names as avatar.

Jun 19, 2022 · 4 min read · jcruz.hashnode.dev  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#js](https://hashnode.com/tag/js)
-   [#reacthooks](https://hashnode.com/tag/reacthooks)

## Written by

[Juan Carlos](https://hashnode.com/@JCruz)

@JCruz · Around the world 😎

  
[View profile](https://hashnode.com/@JCruz)

Frontend Developer / UI Designer

I’m a FrontEnd Developer with UI Design skills. I have 5 years of experience in the field and I always take into consideration the user, to bring them a better experience navigating and using the interfaces I build.

## Responses 1

Markdown supported · ⌘↵ to post

[Shubham Kumar Singh](https://hashnode.com/@shubhamsinghbundela)

[Jun 20, 2022](https://hashnode.com/posts/creating-an-avatar-based-in-the-user-name-with-react/62afaf5dd8afe74aa51fe22d/comment/62afe66a0924134a8048b262)

Thank you [Juan Carlos](https://hashnode.com/@JCruz)

[Jun 20, 2022](https://hashnode.com/posts/creating-an-avatar-based-in-the-user-name-with-react/62afaf5dd8afe74aa51fe22d/comment/62afe66a0924134a8048b262#reply-62b0092b0924134a8048b66d)

You're welcome. Always willing to help 😁
