From 37468f78a15af29fd22f6715d4fa52151107446e Mon Sep 17 00:00:00 2001 From: delila Date: Thu, 21 May 2020 14:15:37 +0800 Subject: [PATCH] Refactor --- src/components/counter.jsx | 5 +++-- src/components/counters.jsx | 3 +-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/components/counter.jsx b/src/components/counter.jsx index 00f78503..dee01c1a 100644 --- a/src/components/counter.jsx +++ b/src/components/counter.jsx @@ -52,6 +52,7 @@ class Counter extends Component { // let classes = this.getBadgeClasses(); // console.log("props", this.props); console.log("Counter - rendered"); + const { onDelete, onIncrement } = this.props; return (
{/*

{this.props.id}

*/} @@ -59,13 +60,13 @@ class Counter extends Component { {/* {this.formatCount()} */} {this.formatCount()}