- Replace
<your_account>
with your Github username in the DEMO LINK - Follow the React task guideline
Create a Sum
component accepting props a
and b
and rendering
a paragraph with the text: "Sum of 2 and 1 is 3". Replace numbers with actual
values. If a
or b
are not passed, set them to 0.
App
should contains the next Sum
components:
a = 2
andb = 3
a = 5
andb = -5
- just
a = 10
- just
b = 5
- no params at all