How to pass a custom hook as props and retain parent context

后端 未结 0 910
北恋
北恋 2020-11-30 16:29

I have a created a custom formatting hook like so:

const useFormatter = (value, short = false) => {
  if (isNaN(value ?? undefined) || !isFinite(value)) {
         


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