hook list

The ordered list React stores on each fiber, holding one record for every hook the component called during render.

In more detail

On each render React walks this list in call order, pairing the first hook call with the first record and so on. Skipping a hook in one render shifts every later pairing, which is why hooks cannot be called conditionally.

Related terms

Taught in

References