# Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?

**Code:** `Adjacent JSX elements` · **Category:** React · **Seen on:** React

A component returns two sibling JSX elements without a single parent.

## Meaning

JSX compiles to one expression; two siblings need a wrapper element or a Fragment. TypeScript reports it as “JSX expressions must have one parent element”.

## Common causes

- Returning sibling elements
- Conditional rendering with two elements side by side

## Quick fix

1. Wrap them in <>…</> (Fragment)
2. Or a semantic wrapper element if styling needs it

## Detailed fix by platform

### React

1. 

```jsx
return (
  <>
    <Header />
    <Main />
  </>
);
```


## How to diagnose

1. **Return** — How many top-level elements?
2. **Recent change** — Did it start after a deploy, upgrade, or configuration change? Compare with the last working version.

---
Source: [WhatIsMyError](https://whatismyerror.com/errors/react/adjacent-jsx-elements-must-be-wrapped)
