How to handle Error types correctly and how to log typescript file name / line number

前端 未结 0 366
陌清茗
陌清茗 2020-12-05 00:30

I\'m trying to write a react error handling component for an application.

export default function Error({e}: {e: Error}) {
    return (
        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题