Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Your solution is approved because it cleanly implements the required Sum component as a named export with default values a = 0 and b = 0, and correctly renders the paragraph using string interpolation so the actual prop values are shown. In src/App.jsx, you use the Sum component in all five required combinations (2+3, -5+5, only a=10, only b=5, and with no props), which demonstrates that the default props work as intended. The JSX style also matches the checklist expectations, with short prop lists on a single line and the paragraph content using template literals rather than hard-coded numbers or manual concatenation. As a minor improvement, make sure you have Prettier (and the provided VSCode settings) configured so that future tasks stay consistently formatted with the course standards. I also recommend running npm test locally to confirm all automated tests pass and to catch any regressions early. Overall, this is a solid, requirements-compliant implementation—well done.
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
[DEMO LINK] https://whomngmnt.github.io/react_sum/