Skip to content

Develop#1129

Open
Quelaan1 wants to merge 3 commits into
mate-academy:masterfrom
Quelaan1:develop
Open

Develop#1129
Quelaan1 wants to merge 3 commits into
mate-academy:masterfrom
Quelaan1:develop

Conversation

@Quelaan1
Copy link
Copy Markdown

Tilak Kumarclear added 2 commits September 29, 2022 04:33
Comment thread src/App.jsx Outdated
Comment on lines 7 to 19
<Sum
a={2}
b={3}
/>
<Sum
a={-5}
b={5}
/>
<Sum a={10} />
<Sum b={5} />
<Sum />
</>
);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Just a note, unlike with raw HTML, in React linter allows up to 3 attributes per line, so no need for newlines here

Comment thread src/App.jsx Outdated
Comment on lines +7 to +14
<Sum
a={2}
b={3}
/>
<Sum
a={-5}
b={5}
/>
Copy link
Copy Markdown

@ihor-jpeg ihor-jpeg Oct 7, 2022

Choose a reason for hiding this comment

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

checklist, first point

Comment thread src/components/Sum.jsx Outdated
import React from 'react';

export const Sum = ({ a = 0, b = 0 }) => (
<p>{`Sum of ${a} and ${b} is ${a + b}`}</p>
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Suggested change
<p>{`Sum of ${a} and ${b} is ${a + b}`}</p>
<p>
{`Sum of ${a} and ${b} is ${a + b}`}
</p>

@Quelaan1 Quelaan1 requested a review from ihor-jpeg October 7, 2022 15:53
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