Browse Source

ok we can unbreak foreach just for you

Khaleel Al-Adhami 4 months ago
parent
commit
8173e10698
1 changed files with 6 additions and 0 deletions
  1. 6 0
      reflex/components/core/foreach.py

+ 6 - 0
reflex/components/core/foreach.py

@@ -45,3 +45,9 @@ def foreach(
         )
 
     return iterable.foreach(render_fn)
+
+
+class Foreach:
+    """Create a list of components from an iterable."""
+
+    create = staticmethod(foreach)