← Back to Help Center

Fix missing return in a section component

Bring back rendered output when a section function no longer returns JSX.

reactcomponentrendering

Symptoms

  • Section appears blank with no clear visual output.
  • Validation flags the section as missing return statement.

Root cause

Component body was refactored and JSX return was removed or moved into unreachable scope.

Fix steps

  1. 1. Confirm component uses either `return (...)` or an implicit arrow return.
  2. 2. If using braces in arrow functions, add explicit return.
  3. 3. Make sure return is inside the component function body.

Prevent it next time

  • After major edits, quickly confirm each component still renders a root element.