diff --git a/src/App.js b/src/App.js index 8dfa97f..abee0fb 100644 --- a/src/App.js +++ b/src/App.js @@ -36,4 +36,5 @@ function App (props) { ); } + export default App; diff --git a/src/components/ProductDetail.js b/src/components/ProductDetail.js index 885919a..e2ecb8a 100644 --- a/src/components/ProductDetail.js +++ b/src/components/ProductDetail.js @@ -1,4 +1,5 @@ import React from "react"; +import Reviews from "./reviews"; function ProductDetail(props) { const {name,description,rating,imgUrl} = props.product; @@ -14,7 +15,7 @@ function ProductDetail(props) {

{name}

-

{description} +

{description}

@@ -27,4 +28,5 @@ function ProductDetail(props) {
); } + export default ProductDetail; diff --git a/src/components/Reviews.js b/src/components/Reviews.js new file mode 100644 index 0000000..6c3415d --- /dev/null +++ b/src/components/Reviews.js @@ -0,0 +1,15 @@ +import React from "react"; + +class Reviews extends React.Component { + constructor(props) { + super(props); + } + render() { + return ( +
+ ); + } +} + + +export default Reviews;