aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--part1/unicafe/src/App.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/part1/unicafe/src/App.js b/part1/unicafe/src/App.js
index efb32a2..1b6f57e 100644
--- a/part1/unicafe/src/App.js
+++ b/part1/unicafe/src/App.js
@@ -30,8 +30,11 @@ const App = () => {
<Display text="good" count={good} />
<Display text="neutral" count={neutral} />
<Display text="bad" count={bad} />
+ <Display text="all" count={good + neutral + bad} />
+ <Display text="average" count={(good - bad) / 9.0} />
+ <Display text="positive(%)" count={(good/(good + neutral + bad)) * 100} />
</div>
)
}
-
+
export default App