---
title: Error Boundaries
toc: false
order: 1
---

# Error Boundaries

This example demonstrates some of the basic features of React Router's `errorElement` boundaries, including:

- Handling thrown `loader` errors
- Handling render errors
- Re-throwing errors from an `errorElement`

## Preview

Open this example on [StackBlitz](https://stackblitz.com):

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/remix-run/react-router/tree/main/examples/error-boundaries?file=src/App.tsx)
