Files
poe-auto-pricer/app/components/price-list/price-list.tsx

15 lines
351 B
TypeScript

import React from 'react';
import { PriceListItem } from '../price-list-item/price-list-item';
interface IProps {
data: any[];
}
export class PriceList extends React.Component<IProps, any> {
constructor(props: IProps) {
super(props);
}
render = () => this.props.data.map((value, index) => <PriceListItem data={value} key={index} />);
}