html - React JS importing image "Not allowed to load local resource" error -
i got quick question concerning react js. when try import image saved in dev file (so no internet url physical path), "not allowed load local resource error". searched little on internet , found out giving relative path image load fix problem. used error physical path , i've passed relative path don't errors image not load. has experienced already?
here's code more information:
export class loginpage extends component { render() { return ( <div> <image src ='../photostock/login_background.jpeg'/> </div> ) } }
i can't seem image print on screen. clues? (on chrome browser aka why error)
thanks lot!
d.
Comments
Post a Comment