A image will load if i type in the path of the image like below:
<li><a href="#"><img src={require('../images/it.jpg')} />
but if i do it dynamically where it gets the image url from JSON, it just won't work, i get this error Error: Cannot find module "."
const TopMovies = ({tops}) =>(
<ul>
<li><a href="#"><img src={require(tops.image)} />
</a></li>
</ul>
);
};
export default TopMovies;