React-Tutorials
React-Tutorials copied to clipboard
Issue while implementing Error Boundaries
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