Skip to content

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

Open
krishnuz wants to merge 1 commit intojavascripters-community:masterfrom
krishnuz:assignment_by_krishna_kumar
Open

Assignment of react beginners training submission by [Krishna Kumar]. Made ema-john app.#8
krishnuz wants to merge 1 commit intojavascripters-community:masterfrom
krishnuz:assignment_by_krishna_kumar

Conversation

@krishnuz
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

2 participants