18 lines
457 B
TypeScript
18 lines
457 B
TypeScript
import * as React from 'react';
|
|
|
|
import { IPokemon } from 'app/models/Pokemon';
|
|
|
|
export interface IPokemonSelectListProps {
|
|
pokemonList : Array<IPokemon>;
|
|
}
|
|
|
|
export class PokemonSelectList extends React.Component<IPokemonSelectListProps, object> {
|
|
public render() {
|
|
return (
|
|
<div>
|
|
{ this.props.pokemonList.map((pokemon, index) => <div key={ index }>{ pokemon.name }</div>) }
|
|
</div>
|
|
);
|
|
}
|
|
}
|