From 92aadfc3ed36394b7ff2fcf61d1b490d18fad41b Mon Sep 17 00:00:00 2001 From: Serhii-Tarasov Date: Fri, 21 Aug 2026 18:45:40 +0300 Subject: [PATCH 1/2] develop --- src/App.jsx | 23 ++++++++++++----------- src/components/Sum/Sum.jsx | 6 +++++- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index dc51f769d..18f102471 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,14 +1,15 @@ import React from 'react'; import './App.scss'; +import { Sum } from './components/Sum/Sum'; -export const App = () => ( - <> -

Sum of 2 and 3 is 5

-

Sum of -5 and 5 is 0

-

Sum of 10 and 0 is 10

-

Sum of 0 and 5 is 5

-

Sum of 0 and 0 is 0

- {/* Replace paragraphs with Sum componets */} - {/* And remove commented lines :) */} - -); +export const App = () => { + return ( + <> + + + + + + + ); +}; diff --git a/src/components/Sum/Sum.jsx b/src/components/Sum/Sum.jsx index 381aa0422..a744858a4 100644 --- a/src/components/Sum/Sum.jsx +++ b/src/components/Sum/Sum.jsx @@ -1 +1,5 @@ -// export const Sum = () => (); +export const Sum = ({ a = 0, b = 0 }) => { + return

{`Sum of ${a} and ${b} is ${a + b}`}

; +}; + +export default Sum; From 189c56e1236dc0ca44573417c313c1c0c65a5495 Mon Sep 17 00:00:00 2001 From: Serhii-Tarasov Date: Fri, 21 Aug 2026 18:51:27 +0300 Subject: [PATCH 2/2] develop2 --- src/components/Sum/Sum.jsx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/components/Sum/Sum.jsx b/src/components/Sum/Sum.jsx index a744858a4..9853f9183 100644 --- a/src/components/Sum/Sum.jsx +++ b/src/components/Sum/Sum.jsx @@ -1,5 +1,3 @@ export const Sum = ({ a = 0, b = 0 }) => { return

{`Sum of ${a} and ${b} is ${a + b}`}

; }; - -export default Sum;