Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assignment of react beginners training submission by [Krishna Kumar]. Made ema-john app. #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

krishnuz
Copy link

No description provided.

@krishnuz krishnuz changed the title Assignment of react beginners training submission. Made ema-john app. Assignment of react beginners training submission by [Krishna Kumar]. Made ema-john app. Jul 27, 2017
Copy link
Contributor

@javascripters2015 javascripters2015 left a comment

Choose a reason for hiding this comment

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

Please follow best practices,
1> Use comment wherever necessary
2> Make code more readable
3> User small function names, don't use any inline javascript code in HTML code.

<h2>Features</h2>
<ul>
{
item.features.map(feature => <li key={feature.description}>{feature.description}:{feature.value}</li>)
Copy link
Contributor

Choose a reason for hiding this comment

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

Function too long , please make it readable.
user comments to understand the code implementation intent.

</div>
}
</div>
<button onClick={this.addToCartHandler.bind(this)}>Add to cart</button>
Copy link
Contributor

Choose a reason for hiding this comment

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

assign some method onClick instead of inline js code, follow good practices.

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

Successfully merging this pull request may close these issues.

None yet

2 participants