一覧へ戻る
mate-academy/react_sum(新しいタブで開きます)
主要言語: JavaScript
- star 数
- 3
- watcher 数
- 8
- fork 数
- 3,972
- issue 数
- 3,920
- 最終更新
- 2024/09/11
主要言語: 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.