-
Notifications
You must be signed in to change notification settings - Fork 13
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
base: master
Are you sure you want to change the base?
Conversation
|
||
const title = props?.title?.value ?? 'Extension Title Default' | ||
// Conditionally rendering based on the availability of product items |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
No description provided.