Skip to content
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

done1 #3453

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

done1 #3453

wants to merge 2 commits into from

Conversation

BeginerAI
Copy link

No description provided.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your implementation is almost there! 🎉 However, the App component needs to include multiple Sum components with different prop values as specified in the task description. This is crucial to meet the core requirements of the task. Please make these adjustments, and you'll be all set! Keep up the great work! 😊

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

🔄 Fix the issues, commit the changes, and then re-request my review using the Re-request review button in the Reviewers tab.

@@ -1,5 +1,6 @@
import React from 'react';
import './App.scss';
import { Sum } from './components/Sum/Sum';

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Sum component is imported correctly, but the App component should include multiple Sum components with different prop values as specified in the task description. Currently, only one Sum component is used with a={2} and b={2}. You need to add the following Sum components:

  • a = 2 and b = 3
  • a = -5 and b = 5
  • just a = 10
  • just b = 5
  • no params at all.

src/App.jsx Outdated
@@ -8,7 +9,6 @@
<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>
{/* Replace paragraphs with Sum componets */}
{/* And remove commented lines :) */}
<Sum a={2} b={2} />

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line uses the Sum component with a={2} and b={2}. According to the task requirements, you should use different values for a and b as specified in the task description.

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your code has been reviewed and I'm happy to say it meets the task requirements! 🎉

Review Summary:

  • Sum Component: You've done a great job implementing the Sum component. It correctly accepts a and b props, with default values set to 0, which is a good practice to avoid undefined values. The component renders the sum in the correct format using string interpolation.

  • App Component: The App component is well-structured, including multiple Sum components with various prop values:

    • a = 2 and b = 3
    • a = -5 and b = 5
    • a = 10 (with b defaulting to 0)
    • b = 5 (with a defaulting to 0)
    • No parameters (both a and b default to 0).
  • Code Style: Your code follows the guidelines and is cleanly written, making it easy to read and understand.

Final Thoughts:

Your solution is correct and meets all specified requirements. There are no missing or unrelated files, and the implementation aligns perfectly with the task. Keep up the great work! 🚀

Remember, even though the decision is to approve, always take the time to review any comments or suggestions to further improve your code. Continuous learning and improvement are key to becoming a proficient developer. Keep pushing forward and learning from each experience! 😊

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants