escape hatch

A feature that lets you step outside the normal React model, such as refs and Effects, for the cases React cannot express declaratively.

In more detail

Escape hatches are needed to focus an input, measure an element or talk to a non-React library. Most application logic should not rely on them.

Related terms

Taught in

References