This commit is contained in:
2018-08-14 00:02:06 -05:00
commit 4757abfff3
29 changed files with 14255 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
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);
}
// componentDidMount() {
// console.log(this.props.data);
// }
// componentWillReceiveProps(nextProps: IProps) {
// if (this.props !== nextProps) {
// // do stuff
// console.log(nextProps);
// }
// }
render = () => this.props.data.map((value, index) => <PriceListItem data={value} key={index} />);
}