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

Updates React binding boilerplate code #391

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

ZaidRehmanQureshi
Copy link
Collaborator

No description provided.


const title = props?.title?.value ?? 'Extension Title Default'
// Conditionally rendering based on the availability of product items
Copy link
Member

Choose a reason for hiding this comment

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

This is a good comment.

const title = props?.title?.value ?? 'Extension Title Default'
// Conditionally rendering based on the availability of product items
if (!productItems.length) {
return <h2>No Products Found</h2>; // Display message when no products are found
Copy link
Member

Choose a reason for hiding this comment

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

This isn't; this is redundant. General rule for commenting, if the comment says exactly what the code does, then it's not useful.

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.

3 participants