| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
You'll be building a simple react component: an avatar picker. It looks like this:
The user clicks on the avatar to open a popover which allows the user to choose another avatar from the list. After a click a (fake) HTTP request is made (while a loading spinner runs), the popover closes and the new avatar will appear in the inital view.
[
{ "src": "avatar1.png", "label": "Avatar 1", "id": 1 },
{ "src": "avatar2.png", "label": "Avatar 2", "id": 2 },
{ "src": "avatar3.png", "label": "Avatar 3", "id": 3 },
{ "src": "avatar4.png", "label": "Avatar 4", "id": 4 },
{ "src": "avatar5.png", "label": "Avatar 5", "id": 5 },
{ "src": "avatar6.png", "label": "Avatar 6", "id": 6 }
]
(you may adjust the paths to your needs of course)
Happy coding! ❤️
| Back | FazBrowse Home | New Git URL |