Back to results
mate-academy/react_sum(opens in a new tab)
Language: JavaScript
- stars
- 3
- watchers
- 8
- forks
- 3,972
- open issues
- 3,920
- Last updated
- 09/11/2024
Language: JavaScript
Create a Sum component accepting a and b props and rendering a paragraph with a text like Sum of 2 and 1 is 3. Replace numbers with actual
values. If the a or b props are not passed, set them to 0.
Please note: use named export (not default).
The App should contain the next Sum components:
a = 2 and b = 3;a = -5 and b = 5;a = 10;b = 5;npm test to ensure your solution is correct.<your_account> with your Github username in the DEMO LINK and add it to the PR description.