Upload 1.11

This commit is contained in:
AndrewTrieu
2023-03-13 16:16:49 +02:00
parent a6c5fb2133
commit 7ece97e2f9

View File

@@ -2,12 +2,13 @@ import { useState } from "react";
const Button = (props) => {
return <button onClick={props.handleClick}>{props.text}</button>;
};
// StatistticsLine should display as a HTML table
const StatisticsLine = ({ text, value }) => {
return (
<p>
{" "}
{text} {value}{" "}
</p>
<tr>
<td>{text}</td>
<td>{value}</td>
</tr>
);
};
const Statistics = (props) => {