Update 16_higher_order_component.md

pull/104/head
懒熊吖 5 years ago committed by GitHub
parent 8bc961899c
commit cbffa41d8c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -54,7 +54,7 @@ const Button = ({ onClick, text, style }) => {
) )
} }
const buttonWithStyle = (CompParam) => { const buttonWithSuperPower = (CompParam) => {
const buttonStyles = { const buttonStyles = {
backgroundColor: '#61dbfb', backgroundColor: '#61dbfb',
padding: '10px 25px', padding: '10px 25px',
@ -99,7 +99,7 @@ const Button = ({ onClick, text, style }) => {
) )
} }
const buttonWithStyles = (CompParam, name = 'default') => { const buttonWithSuperPower = (CompParam, name = 'default') => {
const colors = [ const colors = [
{ {
name: 'default', name: 'default',

Loading…
Cancel
Save