Back to Reflex

Fragment

docs/library/layout/fragment.md

0.9.2a2443 B
Original Source

Fragment

python
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 for more information on its use-case.

python
rx.fragment(rx.text("Component1"), rx.text("Component2"))
md
# Video: Fragment