Material-UI: изображения из API не отображаются в CardMedia - PullRequest
0 голосов
/ 11 октября 2019
<Grid container spacing={3}>
    {this.state.tvShow.map((item, i) => {
       return(
          <Grid item xs={3}
              key={i} 
              onClick={this.openDetails.bind(this, i)} 
              onHide={this.closeDetails}
                                    >
              <Card>
                 <CardMedia 
                    style={{height:0, paddingTop: '56.25%'}}
                    component="img" 
                    image={item.image.original} 
                  />
               <CardContent>
                 <Typography component="h2">
               {item.name}
                 </Typography>

                 <Typography component="h3">
                    Year: {item.premiered}
                 </Typography >

                 <Typography component="h3">
                    Rating: {item.rating.average}
                 </Typography>
               </CardContent>
Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...