Cause 1 of 6
The data has not arrived yet on the first render.
Render for the loading state explicitly: if (!user) return <Spinner />; before touching any field. Optional chaining with a default — user?.name ?? '' — works for a single value, but an early return is clearer when the whole component depends on the data.
Cause 2 of 6
A lookup returned nothing.
array.find(...) returns undefined when no element matches, and an out-of-range index does the same. Store the result, check it, then use it — const match = items.find(...); if (!match) return null;.
Cause 3 of 6
The response shape differs from what you assumed.
Log the raw response before destructuring it. A payload wrapped as { data: { user } }, or an error body returned with a 200 status, is the usual difference — and the field name in the error message tells you which level went missing.
Cause 4 of 6
A nested destructure hit a missing intermediate.
const { profile: { email } } = user throws when profile is absent. Destructure one level at a time, or supply a default: const { profile = {} } = user.
Cause 5 of 6
this is undefined inside a callback.
A class method passed directly as an event handler loses its receiver, so this.state is undefined. Define it as a class-property arrow function, or bind it in the constructor.
Cause 6 of 6
An import is undefined at runtime.
Importing a default that does not exist, or naming a named export incorrectly, yields undefined rather than an error — the failure surfaces at the first property access. Check whether the module exports a default or named bindings.