From 10daad2d876fb3ebc32849bb955bd8daf38d65e0 Mon Sep 17 00:00:00 2001 From: Anish Lakhwara Date: Mon, 15 May 2023 23:44:23 +1000 Subject: [PATCH] exercise 2.3 --- part2/src/App.js | 1 + 1 file changed, 1 insertion(+) diff --git a/part2/src/App.js b/part2/src/App.js index 5e381a0..92f12e1 100644 --- a/part2/src/App.js +++ b/part2/src/App.js @@ -15,6 +15,7 @@ const Content = ({ parts }) => { } const Sum = ({ parts }) => { + // Already used reduce :3 const total = parts.reduce((acc, currVal) => acc + currVal.exercises, 0) return ( The total number of execrcises is {total}