-
Shop Name
+
SpacePandaArtShop
-
+
+{/*
@@ -83,9 +95,12 @@ function App() {
-
+ */}
+ {productDivs}
+ {/*
*/}
+{/*

@@ -107,8 +122,9 @@ function App() {
+ */}
-
+ {/*
@@ -194,13 +210,13 @@ function App() {
-
+
*/}
-
If you like this template, then check out this tutorial on how to build a working review system for your online store!
-
View Tutorial
+
If you like this, then check out this link on how to build your online store!
+
View
@@ -215,11 +231,11 @@ function App() {
-
+
diff --git a/src/component/Carousel.js b/src/component/Carousel.js
new file mode 100644
index 0000000..33fed89
--- /dev/null
+++ b/src/component/Carousel.js
@@ -0,0 +1,36 @@
+import React from 'react';
+function Carousel(){
+ return (
+
+ )
+}
+export default Carousel;
\ No newline at end of file
diff --git a/src/component/Footer.js b/src/component/Footer.js
new file mode 100644
index 0000000..d089234
--- /dev/null
+++ b/src/component/Footer.js
@@ -0,0 +1,13 @@
+import React from 'react';
+function Footer(){
+ return (
+
+ )
+}
+export default Footer;
\ No newline at end of file
diff --git a/src/component/Header.js b/src/component/Header.js
new file mode 100644
index 0000000..5e09e6f
--- /dev/null
+++ b/src/component/Header.js
@@ -0,0 +1,14 @@
+import React from 'react';
+function Header(){
+ return (
+ )
+}
+export default Header;
\ No newline at end of file
diff --git a/src/component/ProductDetail.js b/src/component/ProductDetail.js
new file mode 100644
index 0000000..27fd0bd
--- /dev/null
+++ b/src/component/ProductDetail.js
@@ -0,0 +1,44 @@
+import React from 'react';
+function ProductDetail(props){
+ let starRating = props.product.rating;
+ let totalStars = [];
+ let emptyStarsNum = 5 - starRating;
+ let emptyStars = [];
+ for(var i=0; i< starRating; i++){
+ totalStars.push(
)
+ }
+ for(var j=0; j< emptyStarsNum; j++){
+ emptyStars.push(
)
+ }
+
+ return (
+ // {props.product.name}
+
+
+ {/*

*/}
+

+
+
+
+
{starRating} Star Rating
+
{props.product.reviews} Reviews
+
+ {totalStars} {emptyStars}
+ {/*
+
+
+
+ */}
+
+
+
+
+ )
+ }
+export default ProductDetail;
\ No newline at end of file
diff --git a/src/index.js b/src/index.js
index e58303d..75daae2 100644
--- a/src/index.js
+++ b/src/index.js
@@ -5,6 +5,6 @@ import './index.css';
import state from './state';
ReactDOM.render(
-
,
+
,
document.getElementById('root')
);