Pretify code, remove unnecessary semicolon, function => const

This commit is contained in:
Ray
2017-10-08 16:55:00 +01:00
parent cbe7410f8d
commit 9f6d256a96
11 changed files with 67 additions and 68 deletions

View File

@@ -43,6 +43,6 @@ const Compare = ({products}) =>
</tbody>
</table>
</div>
</div>;
</div>
export default Compare;
export default Compare

View File

@@ -17,6 +17,6 @@ const Product = ({product, compare}) =>
</div>
</div>
</div>
</div>;
</div>
export default Product;
export default Product

View File

@@ -1,5 +1,5 @@
import React from 'react'
import {Product} from '../';
import {Product} from '../'
const ProductList = ({products, compare}) =>
<div>
@@ -8,6 +8,6 @@ const ProductList = ({products, compare}) =>
<Product key={product.id} product={product} compare={compare} />
)}
</div>
</div>;
</div>
export default ProductList;
export default ProductList