reflex/reflex/components/base/fragment.py

10 lines
312 B
Python

"""React fragments to enable bare returns of component trees from functions."""
from reflex.components.component import Component
class Fragment(Component):
"""A React fragment to return multiple components from a function without wrapping it in a container."""
library = "react"
tag = "Fragment"