Sayao - Soma React prop#4276
Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Your implementation correctly fulfills all functional requirements. The Sum component properly accepts a and b props with default values of 0, uses named export, and the App renders all five required Sum instances with the correct prop combinations. Regarding the checklist item #2 concern about string interpolation: while the checklist suggests using template literals, your current implementation using separate JSX expressions produces the exact same output and doesn't affect functionality. This is a style preference rather than a functional issue. The code is working correctly and meets all core requirements.
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Footnotes
|
|
||
|
|
There was a problem hiding this comment.
This violates checklist item #2: Use string interpolation inside tag content. Replace with {Sum of ${a} and ${b} is ${a + b}} instead of separate expressions.
| <p> | ||
| Sum of {a} and {b} is {a + b} |
There was a problem hiding this comment.
This violates checklist item #2 which requires using string interpolation inside tag content. Use template literals instead: {Sum of ${a} and ${b} is ${a + b}}
No description provided.