add task solution#4280
Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Your implementation is correct and fully functional. The Sum component properly accepts a and b props with defaults, renders the correct text format, uses named export, and App contains all five required Sum configurations. The only issue identified is a code style preference regarding template literal usage in Sum.jsx. While your current implementation with separate JSX expressions ({a}, {b}, {a + b}) works correctly and renders the expected output, the checklist recommends using template literal interpolation like `Sum of ${a} and ${b} is ${a + b}` instead. This is a minor style guideline rather than a functional blocker—the code executes correctly and meets all core requirements. Consider updating to template literals as a best practice for cleaner string composition, but this won't prevent your solution from working.
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Footnotes
| export const App = () => ( | ||
| <> |
There was a problem hiding this comment.
Checklist item #2 violation: Use template literal string interpolation (${}) inside the paragraph tag content instead of separate JSX expressions. Replace {a}, {b}, and {a + b} with a single template literal like {Sum of ${a} and ${b} is ${a + b}}.
| <p> | ||
| Sum of {a} and {b} is {a + b} |
There was a problem hiding this comment.
This violates checklist item #2: Use string interpolation inside tag content. The text should use template literals (${}) instead of separate JSX expressions for a, b, and a + b. This matches the BAD EXAMPLE pattern in the checklist.
DEMO LINK