From cbffa41d8c49e9dad7e162c9cfd436b658dbb022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=87=92=E7=86=8A=E5=90=96?= Date: Fri, 2 Apr 2021 16:02:12 +0800 Subject: [PATCH] Update 16_higher_order_component.md --- 16_Higher_Order_Component/16_higher_order_component.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/16_Higher_Order_Component/16_higher_order_component.md b/16_Higher_Order_Component/16_higher_order_component.md index af6ff89..4a3cf65 100644 --- a/16_Higher_Order_Component/16_higher_order_component.md +++ b/16_Higher_Order_Component/16_higher_order_component.md @@ -54,7 +54,7 @@ const Button = ({ onClick, text, style }) => { ) } -const buttonWithStyle = (CompParam) => { +const buttonWithSuperPower = (CompParam) => { const buttonStyles = { backgroundColor: '#61dbfb', padding: '10px 25px', @@ -99,7 +99,7 @@ const Button = ({ onClick, text, style }) => { ) } -const buttonWithStyles = (CompParam, name = 'default') => { +const buttonWithSuperPower = (CompParam, name = 'default') => { const colors = [ { name: 'default',