'how to access file from another directory

I'm working on a react js app and I need to access an image file which I put in another directory. here's the folder structure:

folder structure

I'm calling the image from AddUser.js using src="../assets/img/1.jpg". but somehow it still displays as a blank broken image like this..

blank broken image

what am I doing wrong? any help is appreciated



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source