Stack
React errors
This page is the render crash, not every component in the library. Objects are not valid as a React child. Each child in a list should have a unique key. Element type is invalid. React does not recognize a prop on a DOM element. Too many re-renders. An input switched from uncontrolled to controlled. Invalid hook call. Cannot read properties of undefined (reading 'map'). A client-side route that 404s on refresh is here too, because the host never had a file for that path.
useState only works in a Client Component is a Next.js App Router error, so it lives on the Next.js hub, along with hydration mismatch. If the stack trace is a hook in a Server Component, start there. If the message is the object-as-child crash, start here. Those two URLs used to compete for the same sentence. The page that already used the error as its title is the one that remains. Minified React error #31 is that same crash.
On this page
- Objects are not valid as a React child
- Each child in a list should have a unique "key" prop
- Element type is invalid: expected a string or a class/function but got: undefined
- React does not recognize the prop on a DOM element
- Too many re-renders. React limits the number of renders to prevent an infinite loop.
- A component is changing an uncontrolled input to be controlled
- Invalid hook call. Hooks can only be called inside of the body of a function component.
- Cannot read properties of undefined (reading 'map')
- 404 on refresh of a client route
Every other fix is on the error index. Paste the first line of the message there.