> For AI agents: the complete documentation index is at [llms.txt](https://reflex.dev/docs/llms.txt). Markdown versions are available by appending `.md` or sending `Accept: text/markdown`.

---
components:
  - rx.fragment
---

# Fragment

```python exec
import reflex as rx
```

A Fragment is a Component that allow you to group multiple Components without a wrapper node.

Refer to the React docs at [React/Fragment](https://react.dev/reference/react/Fragment) for more information on its use-case.

```python demo
rx.fragment(rx.text("Component1"), rx.text("Component2"))
```

```md video https://youtube.com/embed/ITOZkzjtjUA?start=3196&end=3340
# Video: Fragment
```

## API Reference

### rx.fragment

A React fragment to return multiple components from a function without wrapping it in a container.

#### Event Triggers

Base event triggers: https://reflex.dev/docs/api-reference/event-triggers/
