Error AtlasError Documentation and Resolution

Functions are not valid as a child of Client Components

Functions are not valid as a child of Client Components.

React received a function where rendered output was expected inside a Client Component, often because a component reference or callback was returned instead of JSX.

React error #506runtime
Functions are not valid as a child of Client Components.
  • A function was returned from render instead of a rendered element.
  • A component reference was used where an instantiated component like <Component /> was intended.
  • A callback or helper function leaked into rendered output.
  1. Render a JSX element such as <Component /> instead of returning Component.
  2. Call the intended function if you meant to use its result rather than the function itself.
  3. Check the render path for accidental function values in arrays, fragments, or conditional branches.
React Docs: Minified React error #506
React error #506 functions are not valid as a child of Client Components | Error Atlas