Conversation
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Great job on implementing the functional requirements for the Sum component! The logic is correct, and it's used properly in App.jsx. However, I'm requesting a couple of changes before this can be approved.
First, the implementation in src/components/Sum/Sum.jsx violates a style guideline. The output string should be constructed using a single template literal, like {Sum of ${a} and ${b} is ${a + b}}, as required by [CHECKLIST ITEM #2].
Second, the automated tests are failing due to a dependency conflict in your package.json. To fix this, please downgrade the eslint-plugin-n package to version "^16.0.0" and run npm install.
Once you've addressed these points and removed the commented-out code in App.jsx, your solution will be in great shape!
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Important
Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.
Tip
If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.
Caution
Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.
Footnotes
src/components/Sum/Sum.jsx
Outdated
| export const Sum = ({ a = 0, b = 0 }) => ( | ||
| <div className="Sum"> | ||
| <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 be constructed using a single template literal for better readability and maintainability, like {Sum of ${a} and ${b} is ${a + b}}.
src/App.jsx
Outdated
| {/* <p>Sum of 2 and 3 is 5</p> | ||
| <p>Sum of -5 and 5 is 0</p> | ||
| <p>Sum of 10 and 0 is 10</p> | ||
| <p>Sum of 0 and 5 is 5</p> | ||
| <p>Sum of 0 and 0 is 0</p> | ||
| <p>Sum of 0 and 0 is 0</p> */} |
There was a problem hiding this comment.
Good job on implementing the required Sum components. This block of commented-out code can now be removed.
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Great work on the React components! The Sum and App components are implemented perfectly and meet all the requirements. However, changes are needed because the project build is failing due to a dependency conflict in your package.json file. The eslint-config-standard package requires an older version of eslint-plugin-promise.
To fix this, please make the following change in your package.json:
// Change this:
"eslint-plugin-promise": "^7.2.1",
// To this:
"eslint-plugin-promise": "^6.0.0",After updating the file, remember to delete your package-lock.json and run npm install to regenerate it with the correct dependencies. Once that's fixed, your solution will be ready!
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
Important
Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.
Tip
If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.
Caution
Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.
Footnotes
mateacademy-ai-mentor
left a comment
There was a problem hiding this comment.
Review Summary
Excellent work on this submission! I am approving your solution as it perfectly meets all the requirements. You've implemented the Sum and App components flawlessly, and the code is clean and well-styled. It's also great that you successfully resolved the dependency conflict from the previous review. Fantastic job!
✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨
No description provided.