Upload 1.11
This commit is contained in:
@@ -2,12 +2,13 @@ import { useState } from "react";
|
|||||||
const Button = (props) => {
|
const Button = (props) => {
|
||||||
return <button onClick={props.handleClick}>{props.text}</button>;
|
return <button onClick={props.handleClick}>{props.text}</button>;
|
||||||
};
|
};
|
||||||
|
// StatistticsLine should display as a HTML table
|
||||||
const StatisticsLine = ({ text, value }) => {
|
const StatisticsLine = ({ text, value }) => {
|
||||||
return (
|
return (
|
||||||
<p>
|
<tr>
|
||||||
{" "}
|
<td>{text}</td>
|
||||||
{text} {value}{" "}
|
<td>{value}</td>
|
||||||
</p>
|
</tr>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
const Statistics = (props) => {
|
const Statistics = (props) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user