mehr flugzeuge

This commit is contained in:
Nilstrieb 2021-02-14 16:50:32 +01:00
parent fddfef5829
commit d17d5c37ff
13 changed files with 85 additions and 6 deletions

View file

@ -15,10 +15,15 @@ class Home extends Component {
const favs = this.state.favs
.map(x => <ModelImage src={x.category + x.img} name={x.name} cat={x.category} key={x.category + x.name}/>);
const all = planes
.map(x => <ModelImage src={x.category + x.img} name={x.name} cat={x.category} key={x.category + x.name}/>);
return (
<div>
<h2>Hugos Favoriten</h2>
{favs}
<h2>Alle Flugzeuge</h2>
{all}
</div>
);
}