import { useState } from 'react' const Button = (props) => { return ( ) } const Display = (props) => { return (
{props.text} {props.count}
) } const Statistics = (props) => { const good = props.good const bad = props.bad const neutral = props.neutral if (good === 0 && bad === 0 && neutral === 0) { returnNo feedback given
} const total = good + neutral + bad const average = (good - bad) / 9.0 const positive_percent = (good/total) * 100 return ( <>