React-Tutorials icon indicating copy to clipboard operation
React-Tutorials copied to clipboard

Issue while implementing Error Boundaries

Open akshay2742 opened this issue 3 years ago • 0 comments

Facing a issue while throwing a new error in Hero.js file

I used

if(heroName === 'Joker')
{
   throw new Error ('Not a Hero!')
}

but it does not throw the error it is showing blank screen

akshay2742 avatar Feb 09 '22 08:02 akshay2742