Skip to content

Glossary: React Beyond the Basics

class component

An older style of writing React components as JavaScript classes instead of functions. React's built-in way to write an error boundary still requires a class component, so libraries such as `react-error-boundary` are often used to avoid writing one.

Where the book teaches it

Related terms

error boundaryreact-error-boundary