From ab44bcc82a0b4d6c185c4d69dfdd2d3b66ee38fe Mon Sep 17 00:00:00 2001 From: Leon Xu Date: Tue, 3 May 2022 21:23:09 -0700 Subject: [PATCH] doc: add props destructuring --- src/InfoBox.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/InfoBox.js b/src/InfoBox.js index 30176b2..167501f 100644 --- a/src/InfoBox.js +++ b/src/InfoBox.js @@ -2,9 +2,9 @@ import React from "react"; import "./InfoBox.css"; import { Card, CardContent, Typography } from "@material-ui/core"; -function InfoBox({ title, cases, total }) { +function InfoBox({ title, cases, total, ...props }) { return ( - + {title} @@ -20,4 +20,4 @@ function InfoBox({ title, cases, total }) { ); } -export default InfoBox; \ No newline at end of file +export default InfoBox;