I am trying to load images from a private server to which I have access. When loading from the private server, it is throwing errors, although it works fine when I have tried using a local folder.
My code snippet is below:
import React, { Component } from 'react';
export default class DefaultImages extends Component {
render(){
return(<div className="row">
<div > <h2>Car Gallery</h2></div>
<div className="slide fdi-Carousel">
<div className="onebyone-carosel">
{this.list(this.props.ImagesDataJson)}
</div>
</div>
</div>
);}
list(data) {
return data.map((data, index) => {
return ( <div className="item active">
<div className="col-md-6">
{data.photo_url.map(function(data, index){
return <img key={index} src={require("http://abc1234566667777777.com/2001/51648/1/10/Thumbnails/339673.Jpeg")}
className="img-responsive center-block"/> } )}
</div>
</div>
)
}) } }