React higher order component returns only defaultProps with curly brace function but works with direct return function

前端 未结 0 1137
一整个雨季
一整个雨季 2021-02-10 08:01

Type 1: const funcExample ({param1}) => (

)

Type 2: const funcExample ({param1}) => {return (

)}

Higher order

相关标签:
回答
  • 消灭零回复
提交回复
热议问题