1
0
Эх сурвалжийг харах

ok we can unbreak foreach just for you

Khaleel Al-Adhami 4 сар өмнө
parent
commit
8173e10698

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

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