Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions pynecone/components/layout/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from .container import Container
from .flex import Flex
from .foreach import Foreach
from .fragment import Fragment
from .grid import Grid, GridItem, ResponsiveGrid
from .html import Html
from .spacer import Spacer
Expand Down
9 changes: 9 additions & 0 deletions pynecone/components/layout/fragment.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
"""React fragments to enable bare returns of component trees from functions."""
from pynecone.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"