Error Boundary Playground

Empty guest data makes the scene throw while rendering: what is left on stage with no boundary, and with <Batas>? Then errors from onClick and setTimeout: who…

Why it matters

Late, empty or broken data will come in a real app. Without a boundary, one render error unmounts the whole root: a white screen for every user. With a boundary in the right place, only one part shows "try again" while the rest keeps going. But it does not catch everything, and it does not recover by itself.

The key idea

A boundary catches errors during render, and only those

Common mistakes

Try it in this playground