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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -