-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
base: master
Are you sure you want to change the base?
done1 #3453
Conversation
There was a problem hiding this 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'; |
There was a problem hiding this comment.
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
andb = 3
a = -5
andb = 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} /> |
There was a problem hiding this comment.
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.
There was a problem hiding this 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 acceptsa
andb
props, with default values set to0
, 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 multipleSum
components with various prop values:a = 2
andb = 3
a = -5
andb = 5
a = 10
(withb
defaulting to0
)b = 5
(witha
defaulting to0
)- No parameters (both
a
andb
default to0
).
-
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! ✨
No description provided.