Design comparison
Solution retrospective
I had a little problem with the icons in deploy but i don't know how to fix it. Feedbacks are welcomed.
Community feedback
- Account deleted
Hello !
yeah that is look a little bit annoying for the first time because react does not allow direct path image loading.
you can import the images one by one above your component and put them in array and loop throw them but to be honest that looks so funky.
try to put in img src attribute this
require(category.icon).default
And don't forget to modify the icon key in data.json file make it like you importing it to your category component, waiting for your reply !
0@DiegoLeonardoSotoPosted about 1 year agoI could to fix it, I just had to move the assets folder to the public folder haha
1Account deleted@DiegoLeonardoSoto
Yeah thats the third way actually !
Just learnt about it LOL
0
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord