exercise 1.8
This commit is contained in:
parent
5f6a727ee6
commit
3bb4f34611
|
@ -1,5 +1,6 @@
|
|||
import { useState } from 'react'
|
||||
|
||||
// Lol it's already factored that way :3
|
||||
const Stats = ({ positive, neutral, negative }) => {
|
||||
const total = positive - negative
|
||||
const votes = positive + neutral + negative
|
||||
|
|
Loading…
Reference in a new issue