Skip to content

Conversation

@stephsingler
Copy link

No description provided.

import React from 'react';
import '../index.css';

const ProductDetail = (props) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is okay, but what if you wanted to show one single product detail somewhere in your app.

<div className="ratings">
<p className="pull-right">{product.reviews}</p>
<p>
<span className="glyphicon glyphicon-star"></span>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try to make the stars dynamic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants