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 !
@DiegoLeonardoSoto
Posted
I could to fix it, I just had to move the assets folder to the public folder haha
Account Deleted
@DiegoLeonardoSoto
Yeah thats the third way actually !
Just learnt about it LOL