[英]Images not showing up when i deploy my app to gh-pages
我见过很多解决方案,但大多数都涉及相对链接。
我的是图片网址,我发现它很难加载。
export const Card = (props) => (
<div className = 'card-container'>
<img src={`https:\\robohash.org/${props.monster.id}?set=set2&size=180x180`} alt="monster"/>
<h2 > {props.monster.name}</h2>
<p>
{props.monster.email}
</p>
</div>
);
这是我在控制台中遇到的错误
6:1 GET https://tooluloope.github.io/www.robohash.org/6?set=set2&size=180x180 404
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.