diff --git a/src/App.js b/src/App.js
index 8dfa97f..29bdbd5 100644
--- a/src/App.js
+++ b/src/App.js
@@ -5,6 +5,8 @@ import NavBar from './components/NavBar';
import Footer from './components/Footer';
import ProductDetail from './components/ProductDetail';
import Carousel from './components/Carousel';
+import reviews from "./components/reviews";
+
function App (props) {
var products = props.state.products.map(function(prod){
diff --git a/src/components/Carousel.js b/src/components/Carousel.js
index a10b02b..6ed519c 100644
--- a/src/components/Carousel.js
+++ b/src/components/Carousel.js
@@ -1,36 +1,35 @@
import React, { Component } from 'react';
- function Carousel(){
- return (
-
-
+function Carousel() {
+ return (
+
+ )
}
export default Carousel;
-
diff --git a/src/components/ProductDetail.js b/src/components/ProductDetail.js
index 885919a..3fbbd12 100644
--- a/src/components/ProductDetail.js
+++ b/src/components/ProductDetail.js
@@ -1,7 +1,8 @@
import React from "react";
+import Reviews from "./reviews";
function ProductDetail(props) {
- const {name,description,rating,imgUrl} = props.product;
+ const {name,description,rating,imgUrl,reviews} = props.product;
const stars = [];
for (let i = 0; i < rating; i++) {
stars.push(
);
@@ -14,14 +15,16 @@ function ProductDetail(props) {
-
{description}
+
{description}
-
15 reviews
{stars}
+
+
+
diff --git a/src/components/StateTests.js b/src/components/StateTests.js
new file mode 100644
index 0000000..5943bb2
--- /dev/null
+++ b/src/components/StateTests.js
@@ -0,0 +1,41 @@
+/* import React from "react";
+ testing code for ways to initiate the state*/
+
+// this.state = is way to handle state with ES6 constructors
+
+/* Code I use in reviews.js */
+
+/* class Reviews extends React.Component {
+ constructor(props) {
+ super();
+ this.state = {
+ submit: false,
+ };
+
+
+ later I call the state with a return statement and use a div
+ return (
+